[PR #1260] [MERGED] feat(langgraph): add support for multiple resumes #1339

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1260
Author: @dqbd
Created: 6/4/2025
Status: Merged
Merged: 6/26/2025
Merged by: @dqbd

Base: mainHead: dqbd/multiple-resumes


📝 Commits (10+)

  • 55ab60a feat(langgraph): add support for multiple resumes
  • 7b60409 Remove comments
  • dfbe187 Add XXH3 implementation
  • 8c34729 Remove Buffer from XXH3
  • 87955cd Integrate multiple resume in scratchpad
  • 461ce1e Fix flakiness for resume multiple interrupts
  • ba6fe2a Make test more compact
  • d8e1a06 Verify against Python xxhash
  • 7f7181c Fix build
  • f6a3c25 Add obligatory interrupt IDs

📊 Changes

13 files changed (+857 additions, -44 deletions)

View changed files

📝 libs/langgraph/src/constants.ts (+2 -0)
📝 libs/langgraph/src/errors.ts (+1 -9)
libs/langgraph/src/hash.ts (+489 -0)
📝 libs/langgraph/src/interrupt.ts (+9 -1)
📝 libs/langgraph/src/pregel/algo.ts (+36 -9)
📝 libs/langgraph/src/pregel/loop.ts (+46 -19)
📝 libs/langgraph/src/pregel/types.ts (+1 -1)
📝 libs/langgraph/src/tests/func.test.ts (+9 -0)
libs/langgraph/src/tests/hash.test.ts (+172 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+77 -0)
📝 libs/langgraph/src/tests/python_port/checkpoint.test.ts (+5 -5)
📝 libs/langgraph/src/tests/python_port/graph_structure.test.ts (+2 -0)
📝 libs/langgraph/src/tests/python_port/interrupt.test.ts (+8 -0)

📄 Description

Fixes missing parallel interrupts in invoke/stream

Port of https://github.com/langchain-ai/langgraph/pull/4406 and https://github.com/langchain-ai/langgraph/pull/4374


🔄 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/1260 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 6/4/2025 **Status:** ✅ Merged **Merged:** 6/26/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/multiple-resumes` --- ### 📝 Commits (10+) - [`55ab60a`](https://github.com/langchain-ai/langgraphjs/commit/55ab60adda742f5aac432cae0d6422bf03a884cb) feat(langgraph): add support for multiple resumes - [`7b60409`](https://github.com/langchain-ai/langgraphjs/commit/7b60409e257f2acbfa7fb66f56479edc71059686) Remove comments - [`dfbe187`](https://github.com/langchain-ai/langgraphjs/commit/dfbe187e6d604961c37d36e72f4f7ef52a9e9120) Add XXH3 implementation - [`8c34729`](https://github.com/langchain-ai/langgraphjs/commit/8c347292531bf4d1ffee91b6d0133cee619af808) Remove Buffer from XXH3 - [`87955cd`](https://github.com/langchain-ai/langgraphjs/commit/87955cdb6bb514abcbea59ed90012fa62c191fca) Integrate multiple resume in scratchpad - [`461ce1e`](https://github.com/langchain-ai/langgraphjs/commit/461ce1e186b90176f3871df19aa5b7ba99fde793) Fix flakiness for resume multiple interrupts - [`ba6fe2a`](https://github.com/langchain-ai/langgraphjs/commit/ba6fe2a8e4ade873387d5f8f6654203a47f80c74) Make test more compact - [`d8e1a06`](https://github.com/langchain-ai/langgraphjs/commit/d8e1a06a3ec0e187587a878ace9fc3b109daf4fb) Verify against Python xxhash - [`7f7181c`](https://github.com/langchain-ai/langgraphjs/commit/7f7181c945110baab855334cc5258b4ebbfbd5c5) Fix build - [`f6a3c25`](https://github.com/langchain-ai/langgraphjs/commit/f6a3c25f934bf7970ad3799fb8ac707b7b47af99) Add obligatory interrupt IDs ### 📊 Changes **13 files changed** (+857 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/constants.ts` (+2 -0) 📝 `libs/langgraph/src/errors.ts` (+1 -9) ➕ `libs/langgraph/src/hash.ts` (+489 -0) 📝 `libs/langgraph/src/interrupt.ts` (+9 -1) 📝 `libs/langgraph/src/pregel/algo.ts` (+36 -9) 📝 `libs/langgraph/src/pregel/loop.ts` (+46 -19) 📝 `libs/langgraph/src/pregel/types.ts` (+1 -1) 📝 `libs/langgraph/src/tests/func.test.ts` (+9 -0) ➕ `libs/langgraph/src/tests/hash.test.ts` (+172 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+77 -0) 📝 `libs/langgraph/src/tests/python_port/checkpoint.test.ts` (+5 -5) 📝 `libs/langgraph/src/tests/python_port/graph_structure.test.ts` (+2 -0) 📝 `libs/langgraph/src/tests/python_port/interrupt.test.ts` (+8 -0) </details> ### 📄 Description Fixes missing parallel interrupts in `invoke/stream` Port of https://github.com/langchain-ai/langgraph/pull/4406 and https://github.com/langchain-ai/langgraph/pull/4374 --- <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:15:20 -05:00
yindo closed this issue 2026-02-15 20:15:20 -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#1339