@langchain/langgraph-checkpoint
1.2.3 · 17 Nov 2026MIT5.2M / weekRepositoryHomepagenpmAtom feed
1.2.3 is the newest release of 1.x.
In short
2 fixed
Release note
Patch Changes
langgraph: Make concurrent DeltaChannel writes deterministic on replay
Concurrent same-superstep writes to a
DeltaChannelcould reconstruct from a
checkpoint differently than they were applied live, because live execution
ordered them by task path while savers replayed them by task id. This fixes that
divergence in two complementary ways:Plain concurrent writes are now applied in the canonical
(task_id, idx)
order on both paths:_applyWritesorders them that way live, and thegetDeltaChannelHistorywalk enforces the same order so reconstruction
matches live for every saver (Postgres, SQLite, MongoDB, Redis, and custom).An
Overwritenow wins its entire super-step: every sibling write in the same
step — before AND after theOverwrite— is discarded, matchingBinaryOperatorAggregate. This makes the result independent of the (unstable)
ordering of concurrent fan-in writes; previously a plain write that landed
after anOverwritein the same step was still folded in.
To keep reconstruction in sync with this
Overwriterule, anyDeltaChannel
that sees anOverwritein a super-step is now force-snapshotted at the next
checkpoint (and, under"exit"durability, in the final checkpoint). The
post-overwrite value is materialized intochannel_values, so a cold read seeds
from that snapshot and never has to replay across the reset — making live and
reconstructed state identical without changing the sparse-replay history shape.
These delta-channel APIs remain Beta.langgraph: Forward task metadata and name subagents via lc_agent_name
mapDebugTasksnow forwards filtered user-meaningful task config metadata
(includinglc_agent_name) ontotasksstream payloads. The lifecycle
transformer uses that metadata to set subagentgraph_namefromlc_agent_nameand recovercause: { type: "toolCall", tool_call_id }
from parent tool-dispatch tasks. Adds the sharedEXCLUDED_METADATA_KEYS
constant to@langchain/langgraph-checkpoint. Ports langgraph#7928.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.