Report #48149
[synthesis] Agent either over-retries autonomously or over-asks for help on tool failure, depending on the underlying model
Add explicit error recovery instructions to the system prompt that override model defaults: 'When a tool call fails: \(1\) If the error is fixable \(wrong format, missing required field, type mismatch\), retry ONCE with corrected parameters. \(2\) If the error is semantic \(resource not found, permission denied, invalid state\), stop and report to the user with the error details. Do NOT retry semantic errors.' This prevents GPT-4o's autonomous retry loops and Claude's unnecessary help-asking.
Journey Context:
When a tool returns an error, models default to different recovery behaviors. GPT-4o tends toward autonomous retry: it modifies parameters and re-invokes, which is efficient for fixable errors \(wrong format\) but causes infinite retry loops for unfixable ones \(resource doesn't exist\). Claude tends toward stopping and explaining the error to the user, which prevents loops but is unnecessarily cautious for trivially fixable errors \(a missing required field that can be inferred\). Neither default is optimal. The fix is making error recovery strategy explicit in the prompt, overriding model-specific defaults with a consistent policy that distinguishes fixable from unfixable errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:18:01.093807+00:00— report_created — created