[PR #1818] [MERGED] Fix edge cases with stream_mode=messages #2319

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1818
Author: @nfcampos
Created: 9/23/2024
Status: Merged
Merged: 9/23/2024
Merged by: @nfcampos

Base: mainHead: nc/23sep/stream-messages-fix


📝 Commits (1)

  • 58aaffb Fix edge cases with stream_mode=messages

📊 Changes

1 file changed (+3 additions, -4 deletions)

View changed files

📝 libs/langgraph/langgraph/pregel/messages.py (+3 -4)

📄 Description

  • running callback handler in background thread could potentially lead to ordering issues
  • deduping on id() could lead to messages being dropped if they reused memory address of a previous chunk

🔄 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/1818 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/23/2024 **Status:** ✅ Merged **Merged:** 9/23/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/23sep/stream-messages-fix` --- ### 📝 Commits (1) - [`58aaffb`](https://github.com/langchain-ai/langgraph/commit/58aaffb6bf2af11727d033feab564b33db410381) Fix edge cases with stream_mode=messages ### 📊 Changes **1 file changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/pregel/messages.py` (+3 -4) </details> ### 📄 Description - running callback handler in background thread could potentially lead to ordering issues - deduping on `id()` could lead to messages being dropped if they reused memory address of a previous chunk --- <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:46:48 -05:00
yindo closed this issue 2026-02-20 17:46:48 -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#2319