[PR #894] [MERGED] fix(messages): avoid assigning same ID for tool messages #1092

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/894
Author: @dqbd
Created: 2/24/2025
Status: Merged
Merged: 2/24/2025
Merged by: @dqbd

Base: mainHead: dqbd/pregel-messages-tool-id


📝 Commits (3)

  • b819978 fix(messages): avoid assigning same ID for tool messages
  • 8d5ffae Implement a different fix
  • 3f7e7dc Bump to 0.2.49

📊 Changes

3 files changed (+48 additions, -9 deletions)

View changed files

📝 libs/langgraph/package.json (+1 -1)
📝 libs/langgraph/src/pregel/messages.ts (+16 -8)
📝 libs/langgraph/src/tests/pregel.test.ts (+31 -0)

📄 Description

Tool messages usually don't have a message ID, thus assigning a message ID inferred from run ID will cause parallel tool responses to be dropped, as they will be merged.


🔄 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/langgraphjs/pull/894 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 2/24/2025 **Status:** ✅ Merged **Merged:** 2/24/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/pregel-messages-tool-id` --- ### 📝 Commits (3) - [`b819978`](https://github.com/langchain-ai/langgraphjs/commit/b819978f1b9c3234027c63fca3682692bebb3e0f) fix(messages): avoid assigning same ID for tool messages - [`8d5ffae`](https://github.com/langchain-ai/langgraphjs/commit/8d5ffae82c63b988cc6a35f36960dd96cfdf3e7f) Implement a different fix - [`3f7e7dc`](https://github.com/langchain-ai/langgraphjs/commit/3f7e7dccc4d28cb3d02a171df77d63080bac2cef) Bump to 0.2.49 ### 📊 Changes **3 files changed** (+48 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/package.json` (+1 -1) 📝 `libs/langgraph/src/pregel/messages.ts` (+16 -8) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+31 -0) </details> ### 📄 Description Tool messages usually don't have a message ID, thus assigning a message ID inferred from run ID will cause parallel tool responses to be dropped, as they will be merged. --- <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-15 19:17:11 -05:00
yindo closed this issue 2026-02-15 19:17:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1092