Symptom
A prebuilt agent keeps calling tools step after step and only stops when GraphRecursionError is raised.
Evidence what you'll see
- Run ends with a recursion-limit error instead of a final answer
- Trace shows the same tool called with the same or nearly the same arguments
Cause
The step cap only counts hops. Nothing in the graph notices that the agent is making no progress, so a repeated tool call runs until the cap.
Fix steps
0 of 5 done
Your check marks stay in this browser only.
Verify the fix worked
- Re-run the failing input: the agent finishes or stops on the no-progress rule well before the cap.
- The trace shows no more than N identical consecutive tool calls.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Test in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change