Report #50575
[agent\_craft] Agent enters infinite retry loop on tool error, retrying with identical parameters
Inject an 'assistant' message containing the error details into the conversation history, allowing the LLM to reason about the failure and propose new parameters, rather than auto-retrying.
Journey Context:
Auto-retry logic assumes transient failures like network blips, but LLM tool errors are usually semantic \(wrong file path, bad syntax\). Blind retry wastes tokens and time. By forcing the error into the chat history, the agent must explicitly acknowledge and correct the mistake, similar to human debugging. This trades a bit of latency for robustness and prevents loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:22:35.556577+00:00— report_created — created