[PR #626] [MERGED] Accept dead-ends #1581

Closed
opened 2026-02-20 17:45:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/626
Author: @hinthornw
Created: 6/7/2024
Status: Merged
Merged: 6/8/2024
Merged by: @hinthornw

Base: mainHead: wfh/unvalidate


📝 Commits (3)

📊 Changes

3 files changed (+62 additions, -81 deletions)

View changed files

📝 langgraph/graph/graph.py (+1 -4)
📝 tests/__snapshots__/test_pregel.ambr (+46 -46)
📝 tests/test_pregel.py (+15 -31)

📄 Description

Plus fix a small bug.

Previously, we validated that nodes explicitly route to END.
This feels a bit unnecessary, since graphs are expected to keep processing until no work is left to be done

This decision is a bit of a 1-way door, since once we relax it, if we change our minds, it would break otherwise working code. LMK if you have reservations


🔄 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/langgraph/pull/626 **Author:** [@hinthornw](https://github.com/hinthornw) **Created:** 6/7/2024 **Status:** ✅ Merged **Merged:** 6/8/2024 **Merged by:** [@hinthornw](https://github.com/hinthornw) **Base:** `main` ← **Head:** `wfh/unvalidate` --- ### 📝 Commits (3) - [`2c60585`](https://github.com/langchain-ai/langgraph/commit/2c60585a51afaa60c501a0289fa611279c24003c) Accept dead-ends - [`85fd752`](https://github.com/langchain-ai/langgraph/commit/85fd7528f68e2e6251539920a01180ff84d845d8) sort - [`dda3a46`](https://github.com/langchain-ai/langgraph/commit/dda3a4696edee6af9640225491a6e085285ab3e8) Move tests ### 📊 Changes **3 files changed** (+62 additions, -81 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/graph/graph.py` (+1 -4) 📝 `tests/__snapshots__/test_pregel.ambr` (+46 -46) 📝 `tests/test_pregel.py` (+15 -31) </details> ### 📄 Description Plus fix a small bug. Previously, we validated that nodes explicitly route to END. This feels a bit unnecessary, since graphs are expected to keep processing until no work is left to be done This decision is a bit of a 1-way door, since once we relax it, if we change our minds, it would break otherwise working code. LMK if you have reservations --- <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-20 17:45:04 -05:00
yindo closed this issue 2026-02-20 17:45:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1581