[PR #1677] [MERGED] fix(sdk): useStream keeping stale thread history when switching during stream, no cancel when disconnecting resumable stream #1640

Closed
opened 2026-02-15 20:16:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1677
Author: @dqbd
Created: 9/19/2025
Status: Merged
Merged: 9/19/2025
Merged by: @dqbd

Base: mainHead: dqbd/stream-cancel-on-thread-id-change


📝 Commits (1)

  • e0b09f0 fix(sdk): useStream keeping stale thread history when switching during stream, no cancel when disconnecting resumable stream

📊 Changes

7 files changed (+191 additions, -94 deletions)

View changed files

.changeset/clean-meals-agree.md (+5 -0)
.changeset/weak-phones-grab.md (+5 -0)
📝 libs/sdk/src/react/manager.ts (+12 -4)
📝 libs/sdk/src/react/stream.custom.tsx (+36 -4)
📝 libs/sdk/src/react/stream.lgp.tsx (+103 -85)
libs/sdk/src/react/thread.tsx (+26 -0)
📝 libs/sdk/src/react/types.tsx (+4 -1)

📄 Description

Closes #1632, #1610


🔄 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/1677 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 9/19/2025 **Status:** ✅ Merged **Merged:** 9/19/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/stream-cancel-on-thread-id-change` --- ### 📝 Commits (1) - [`e0b09f0`](https://github.com/langchain-ai/langgraphjs/commit/e0b09f08e8814cdebe6edd4dbdeebd55ad514e99) fix(sdk): useStream keeping stale thread history when switching during stream, no cancel when disconnecting resumable stream ### 📊 Changes **7 files changed** (+191 additions, -94 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/clean-meals-agree.md` (+5 -0) ➕ `.changeset/weak-phones-grab.md` (+5 -0) 📝 `libs/sdk/src/react/manager.ts` (+12 -4) 📝 `libs/sdk/src/react/stream.custom.tsx` (+36 -4) 📝 `libs/sdk/src/react/stream.lgp.tsx` (+103 -85) ➕ `libs/sdk/src/react/thread.tsx` (+26 -0) 📝 `libs/sdk/src/react/types.tsx` (+4 -1) </details> ### 📄 Description Closes #1632, #1610 --- <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 20:16:23 -05:00
yindo closed this issue 2026-02-15 20:16:23 -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#1640