[GH-ISSUE #1563] [langgraph]: Recursion limit description is confusing #211

Closed
opened 2026-02-17 17:19:24 -05:00 by yindo · 0 comments
Owner

Originally created by @FrederikTijhuis on GitHub (Nov 21, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1563

Type of issue

issue / bug

Language

Python

Description

In this paragraph:
https://docs.langchain.com/oss/python/langgraph/graph-api#accessing-and-handling-the-recursion-counter

The documentation currently states:
The recursion limit check follows the logic: step > stop where stop = step + recursion_limit + 1.

This is mathematically impossible, because if:
stop = step + recursion_limit + 1
then stop is always greater than step, so the condition step > stop can never be true.

This creates confusion about how LangGraph actually computes and enforces recursion limits.

Originally created by @FrederikTijhuis on GitHub (Nov 21, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1563 ### Type of issue issue / bug ### Language Python ### Description In this paragraph: https://docs.langchain.com/oss/python/langgraph/graph-api#accessing-and-handling-the-recursion-counter The documentation currently states: The recursion limit check follows the logic: step > stop where stop = step + recursion_limit + 1. This is mathematically impossible, because if: stop = step + recursion_limit + 1 then stop is always greater than step, so the condition step > stop can never be true. This creates confusion about how LangGraph actually computes and enforces recursion limits.
yindo added the langgraphexternal labels 2026-02-17 17:19:24 -05:00
yindo changed title from [langgraph]: Recursion limit description is confusing to [GH-ISSUE #1563] [langgraph]: Recursion limit description is confusing 2026-06-05 17:25:41 -04:00
yindo closed this issue 2026-06-05 17:25:41 -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#211