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
Falsefor"recursion_limit" in resultwhen the value is10000, andTruewhen the value is9999. - The branch is
elif key == "recursion_limit"and it writes the value only when it is notDEFAULT_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 raisesGraphRecursionErrorfrom the nested default of 25.
If it still fails
- The linked issue does not include a merged change.
10000is 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