[PR #1300] [MERGED] feat(langgraph): checkpoint cloning with task masquerading #1362

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

📋 Pull Request Information

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

Base: mainHead: dqbd/update-state-fork-studio


📝 Commits (10+)

  • fef2ed9 feat(langgraph): checkpoint cloning with task masquerading
  • e5f1180 Check
  • f0fbf36 Add test
  • 18b42c5 Add test for regenerating task
  • 945448f Cleanup
  • 2cbadfd Handle copy asNode for initial checkpoint
  • c370eba Add test for forking from start
  • 81b64bf Use array / tuples for Python / JS consistency
  • 5b655d2 Revert to default behaviour
  • 379d67d Fix incorrect END

📊 Changes

2 files changed (+764 additions, -36 deletions)

View changed files

📝 libs/langgraph/src/pregel/index.ts (+84 -23)
📝 libs/langgraph/src/tests/pregel.test.ts (+680 -13)

📄 Description

Add the ability to pass taskId when updating the state to masquerade as a task. Only used when cloning a checkpoint with attached updates


🔄 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/1300 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 6/20/2025 **Status:** ✅ Merged **Merged:** 6/26/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/update-state-fork-studio` --- ### 📝 Commits (10+) - [`fef2ed9`](https://github.com/langchain-ai/langgraphjs/commit/fef2ed9d3c733a9819838fe91393d3e8d5caf08e) feat(langgraph): checkpoint cloning with task masquerading - [`e5f1180`](https://github.com/langchain-ai/langgraphjs/commit/e5f118024a22b7b7fb61058721b13889b0a502bf) Check - [`f0fbf36`](https://github.com/langchain-ai/langgraphjs/commit/f0fbf368269092f0f90da797015271c56d0db1e1) Add test - [`18b42c5`](https://github.com/langchain-ai/langgraphjs/commit/18b42c5f66ffb77f20daeeb9a2480a46f2d00afa) Add test for regenerating task - [`945448f`](https://github.com/langchain-ai/langgraphjs/commit/945448ff059457ad3f6f7f771ce2cf0952d6249f) Cleanup - [`2cbadfd`](https://github.com/langchain-ai/langgraphjs/commit/2cbadfd7d48c444a8d459f9f18756286dc9032f1) Handle __copy__ asNode for initial checkpoint - [`c370eba`](https://github.com/langchain-ai/langgraphjs/commit/c370eba06f29719688f6c05b05dbecd831fe7d76) Add test for forking from start - [`81b64bf`](https://github.com/langchain-ai/langgraphjs/commit/81b64bfdda640d4269689a69131309fcc3f48b0d) Use array / tuples for Python / JS consistency - [`5b655d2`](https://github.com/langchain-ai/langgraphjs/commit/5b655d2d7b77a007a829e5fda6d46f857cbbbdf9) Revert to default behaviour - [`379d67d`](https://github.com/langchain-ai/langgraphjs/commit/379d67da2d034027e55444e85a3585119f8ea1e5) Fix incorrect END ### 📊 Changes **2 files changed** (+764 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/pregel/index.ts` (+84 -23) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+680 -13) </details> ### 📄 Description Add the ability to pass `taskId` when updating the state to masquerade as a task. Only used when cloning a checkpoint with attached updates --- <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:26 -05:00
yindo closed this issue 2026-02-15 20:15:26 -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#1362