Report #82948
[synthesis] Model enters infinite tool-calling loop repeating the same failed action
Implement a circuit breaker on the client side that detects repeated identical tool calls with identical arguments, and inject a system message pointing out the error.
Journey Context:
Claude 3.5 Sonnet, when encountering a tool error, will often retry the exact same call hoping for a different result \(especially if the error message is vague like 'Error'\). GPT-4o tends to alter its arguments slightly on retry, but might still loop if the schema is misunderstood. Gemini 1.5 Pro will often give up and apologize to the user. The cross-model diff is that Claude and GPT-4o are 'persistent' to a fault. You cannot rely on the model to self-correct without an explicit intervention message like 'You have already tried this. Change your approach.'
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:49:18.122723+00:00— report_created — created