AgentFixboard

Agent repeats the same tool call until it hits the recursion limit

A prebuilt agent keeps calling tools step after step and only stops when GraphRecursionError is raised.

Difficulty
Involved
Time
~30 min
Steps
5
Fixed in
—
Last checked
2026-10-15

No upstream fix: these steps work around it. Source: issue closed (not planned) without a merged fix. Last checked 2026-10-15.

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.
Did this fix it?

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