Agent FixboardAgentFixboard

Setting recursion_limit to 10000 silently does nothing

with_config({"recursion_limit": 10000}) does not stick. The report's merge_configs call returns a dict without recursion_limit. A sub-agent then falls back to 25 and raises GraphRecursionError.

From GitHub

langchain-ai/langgraph

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
—
Last checked

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

Symptom

with_config({"recursion_limit": 10000}) does not stick. The report's merge_configs call returns a dict without recursion_limit. A sub-agent then falls back to 25 and raises GraphRecursionError.

Evidence what you'll see

  • The repro prints False for "recursion_limit" in result when the value is 10000, and True when the value is 9999.
  • The branch is elif key == "recursion_limit" and it writes the value only when it is not DEFAULT_RECURSION_LIMIT.

Why it happens

merge_configs treats 10000 as unset because that number is DEFAULT_RECURSION_LIMIT. An explicit 10000 is dropped. A nested graph with no stored limit uses 25.

Affected versions

langgraph 1.1.2, Python 3.14.3, macOS.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • "recursion_limit" in merge_configs({"configurable": {}}, {"recursion_limit": 9999}) is true, and the sub-agent no longer raises GraphRecursionError from the nested default of 25.

If it still fails

  • The linked issue does not include a merged change. 10000 is still dropped on the version in the report.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it