Report #80545
[synthesis] Agent state corruption when assuming parallel tool calls execute sequentially or return in order
For GPT-4o, process the array of tool calls concurrently and return all results simultaneously. For Claude, handle sequential implicit dependencies. For Gemini, force sequential execution via prompt if state mutation is a risk.
Journey Context:
GPT-4o natively outputs arrays of tool calls when it determines they are independent, expecting the client to execute them in parallel and return all results in a single message. Claude 3.5 Sonnet's architecture strongly favors sequential, chain-of-thought tool use; even if tools are independent, it often calls them one by one to maintain reasoning flow. If an agent framework assumes GPT-4o's parallel array behavior for Claude, it breaks. If it assumes Claude's sequential behavior for GPT-4o, it misses optimization and can confuse GPT-4o's context window when returning results one by one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:47:54.650870+00:00— report_created — created