[GH-ISSUE #1121] How can I change the default recursion limit in a LangGraph agent? I am using langgraph-cli to run the graph #152

Closed
opened 2026-02-17 17:19:17 -05:00 by yindo · 1 comment
Owner

Originally created by @gg-seashishgupta on GitHub (Oct 24, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1121

This is the error I am getting after the recursion limit is reached, and I am unable to find documentation at the source mentioned in the error.

langgraph.errors.GraphRecursionError: Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key. For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT

Originally created by @gg-seashishgupta on GitHub (Oct 24, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1121 This is the error I am getting after the recursion limit is reached, and I am unable to find documentation at the source mentioned in the error. langgraph.errors.GraphRecursionError: Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key. For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
yindo closed this issue 2026-02-17 17:19:17 -05:00
Author
Owner

@mdrxy commented on GitHub (Oct 27, 2025):

Hi, the new link is at: https://docs.langchain.com/oss/python/langgraph/GRAPH_RECURSION_LIMIT

Will fix old ones. Thanks!

@mdrxy commented on GitHub (Oct 27, 2025): Hi, the new link is at: https://docs.langchain.com/oss/python/langgraph/GRAPH_RECURSION_LIMIT Will fix old ones. Thanks!
yindo changed title from How can I change the default recursion limit in a LangGraph agent? I am using langgraph-cli to run the graph to [GH-ISSUE #1121] How can I change the default recursion limit in a LangGraph agent? I am using langgraph-cli to run the graph 2026-06-05 17:25:21 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#152