[PR #345] [MERGED] Fix bug where saving a runnable or function in state object would misbehave #1399

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/345
Author: @nfcampos
Created: 4/24/2024
Status: Merged
Merged: 4/24/2024
Merged by: @nfcampos

Base: mainHead: nc/24apr/fix-write-runnable-bug


📝 Commits (1)

  • 3571a89 Fix bug where saving a runnable or function in state object would misbehave

📊 Changes

7 files changed (+131 additions, -49 deletions)

View changed files

📝 langgraph/graph/state.py (+5 -2)
📝 langgraph/pregel/__init__.py (+3 -1)
📝 langgraph/pregel/write.py (+25 -24)
📝 langgraph/utils.py (+4 -2)
📝 tests/__snapshots__/test_pregel.ambr (+17 -0)
📝 tests/test_pregel.py (+42 -6)
📝 tests/test_pregel_async.py (+35 -14)

📄 Description

  • the function/runnable would be called when processing the state update

🔄 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/345 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 4/24/2024 **Status:** ✅ Merged **Merged:** 4/24/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/24apr/fix-write-runnable-bug` --- ### 📝 Commits (1) - [`3571a89`](https://github.com/langchain-ai/langgraph/commit/3571a893f26289b52c67407045dc833ab9e17b0b) Fix bug where saving a runnable or function in state object would misbehave ### 📊 Changes **7 files changed** (+131 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/graph/state.py` (+5 -2) 📝 `langgraph/pregel/__init__.py` (+3 -1) 📝 `langgraph/pregel/write.py` (+25 -24) 📝 `langgraph/utils.py` (+4 -2) 📝 `tests/__snapshots__/test_pregel.ambr` (+17 -0) 📝 `tests/test_pregel.py` (+42 -6) 📝 `tests/test_pregel_async.py` (+35 -14) </details> ### 📄 Description - the function/runnable would be called when processing the state update --- <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:44:37 -05:00
yindo closed this issue 2026-02-20 17:44:38 -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#1399