Report #88411
[synthesis] Agent loop hangs or executes sequentially when expecting parallel tool calls
Architect the agent loop to expect an array of tool calls from GPT-4o \(executing them concurrently\), but for Claude, explicitly prompt 'You can call multiple tools simultaneously' or fall back to sequential execution if it returns a single tool call per turn.
Journey Context:
OpenAI models natively support returning an array of tool calls in a single response, allowing the agent to execute them in parallel. Claude 3.5 Sonnet historically defaults to sequential tool calling \(one per turn\) unless heavily prompted, and even then, its parallel reliability is lower than GPT-4o's. If an agent loop assumes a single tool call per turn, GPT-4o's parallel calls get dropped. If it assumes parallel arrays, Claude loops infinitely waiting for the second tool. You must handle both array and single-object execution paths gracefully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:58:53.118450+00:00— report_created — created