[PR #1982] [MERGED] fix: correct recursion handling to use RemainingSteps managed value #2028

Closed
opened 2026-02-17 17:22:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1982
Author: @niilooy
Created: 12/19/2025
Status: Merged
Merged: 12/19/2025
Merged by: @lnhsingh

Base: mainHead: fix/proactive-recursion-handling


📝 Commits (1)

  • ad4c297 fix: correct recursion handling to use RemainingSteps managed value

📊 Changes

1 file changed (+134 additions, -124 deletions)

View changed files

📝 src/oss/langgraph/graph-api.mdx (+134 -124)

📄 Description

Overview

Fix proactive recursion handling documentation to use the RemainingSteps managed value for Python and clarify the recommended approach for JavaScript (explicit termination conditions with GraphRecursionError as a safety net).


Type of change

Type: Fix typo/bug/link/formatting


Related issues/PRs

  • GitHub issue: N/A
  • Feature PR: N/A

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using make build
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed

Additional notes

  • Updated Python examples to use RemainingSteps from langgraph.managed instead of manually checking config["metadata"]["langgraph_step"]
  • Simplified JavaScript examples since RemainingSteps is not available in JS
  • Split comparison section into language-specific fences to reflect different approaches


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/1982 **Author:** [@niilooy](https://github.com/niilooy) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `fix/proactive-recursion-handling` --- ### 📝 Commits (1) - [`ad4c297`](https://github.com/langchain-ai/docs/commit/ad4c297d7bf3bf617521304a26ecc8645d97f5ae) fix: correct recursion handling to use RemainingSteps managed value ### 📊 Changes **1 file changed** (+134 additions, -124 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langgraph/graph-api.mdx` (+134 -124) </details> ### 📄 Description ## Overview Fix proactive recursion handling documentation to use the `RemainingSteps` managed value for Python and clarify the recommended approach for JavaScript (explicit termination conditions with `GraphRecursionError` as a safety net). --- ## Type of change **Type:** Fix typo/bug/link/formatting --- ## Related issues/PRs * **GitHub issue:** N/A * **Feature PR:** N/A --- ## Checklist * [x] I have read the [contributing guidelines](README.md) * [x] I have tested my changes locally using `make build` * [x] All code examples have been tested and work correctly * [x] I have used **root relative** paths for internal links * [x] I have updated navigation in `src/docs.json` if needed --- ## Additional notes * Updated Python examples to use `RemainingSteps` from `langgraph.managed` instead of manually checking `config["metadata"]["langgraph_step"]` * Simplified JavaScript examples since `RemainingSteps` is not available in JS * Split comparison section into language-specific fences to reflect different approaches --- --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:22:59 -05:00
yindo closed this issue 2026-02-17 17:22:59 -05:00
yindo changed title from [PR #1982] fix: correct recursion handling to use RemainingSteps managed value to [PR #1982] [MERGED] fix: correct recursion handling to use RemainingSteps managed value 2026-06-05 18:16:15 -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#2028