Report #87975
[synthesis] Claude enters infinite loops on identical failing tool calls, while GPT-4o varies parameters or aborts
Mutate the error message returned to Claude on subsequent failures \(e.g., append 'Do not retry with the same parameters'\) and implement a hard retry counter in the execution layer.
Journey Context:
When a tool returns an error \(e.g., HTTP 500 or invalid API key\), Claude tends to apologize and try the exact same tool call with the exact same arguments, leading to infinite loops. GPT-4o tends to try a slightly different parameter or give up and tell the user. Developers often return raw stack traces or generic error strings. For Claude, you must explicitly tell it not to retry identically, or it will exhaust its context window repeating the failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:15:09.097573+00:00— report_created — created