Report #79386
[synthesis] Agent state machine breaks when model returns multiple parallel tool calls unexpectedly
If your agent loop cannot handle parallel execution, explicitly disable it. For GPT-4o, set parallel\_tool\_calls: false in the API request. For Claude, explicitly prompt 'Execute one tool at a time.'
Journey Context:
Agent frameworks often assume a strict request -> tool -> response loop. GPT-4o's default behavior of returning multiple tool calls breaks naive state machines that only pop the first call. Claude's sequential preference masks this bug during development on Claude, only for it to explode when migrating to GPT-4o. The right call is to build the agent loop to handle arrays of tool calls, or strictly disable parallel execution at the API/prompt level.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:50:44.958139+00:00— report_created — created