TL;DR
- client.runs.joinStream now accepts a checkpointId option to rejoin runs from a specific checkpoint instead of replaying from the start
- useStream hook reconnects from the loaded checkpoint on mount, preventing full replay of previously loaded state
- Fork operations now display only the new branch and preserve the correct parent checkpoint for message edits
- Several fixes address loading state, interrupt handling, and run cancellation across thread state changes
- Version
- 1.15.0
- Type
- Minor and patch release
Stream rejoining with checkpoint support
The joinStream method now accepts a checkpointId option passed as the checkpoint_id query parameter. When a server supports this option, it sends only the run's events after that checkpoint. Servers that do not support the parameter ignore it and return the entire run as before. This allows clients to reconnect to in-flight runs without replaying earlier portions of execution.
The useStream hook now leverages this capability with the reconnectOnMount option enabled. When the thread state loads, the hook rejoins the running stream from the loaded head's checkpoint rather than from the run's start. This means reloading the application no longer replays the entire run over the state just loaded, reducing redundant processing and improving user experience.
Message handling in forked and reconnected streams
A critical fix addresses message duplication when forking runs. Previously, after calling submit(input, { forkFrom }), the messages list retained entries from the abandoned branch until the page reloaded. The root cause was checkpoint ordering: a fork's checkpoints restart at a lower step, which the old logic treated as a replay and merged with an add-only strategy. Version 1.15.0 now shows only the new branch after a fork.
The useMessageMetadata hook also improved its parentCheckpointId tracking. Instead of moving every message to the latest checkpoint's parent, it now keeps the parent of the first checkpoint that carried each message. This ensures that forking from a specific point in the conversation edits the intended message without unintended shifts.
A related fix ensures that when a streamed message updates an existing message by id, it does not append a duplicate or overwrite another message when the state was already loaded or a values event moved a message.
Loading state and interrupt handling
The hydrate() method previously left isLoading stuck on true after a run ended in certain scenarios: when reconnecting after a connection drop, when the run finished while the state was being read, or when a run was found on an idle thread. Version 1.15.0 fixes this behavior. When hydrate reopens the thread's stream after reconnection and finds a run in progress, the loaded messages remain on screen while the stream replays the run from that point forward.
Two changes improve interrupt and cancellation flow. First, stop() now cancels the run started by respond() or respondAll() even when called before that run starts, and displays interrupts left waiting after the cancel. Second, submit() without a multitaskStrategy now sends an interrupt when the thread shows a run in flight, telling the server to cancel the previous run instead of queueing behind it. When a multitaskStrategy is provided, submit() sends that strategy instead.
The stream also picks up interrupts raised inside subagents again after reconnecting, restoring expected interrupt propagation in nested agent architectures.
Deprecations
MessageTupleManager.get's defaultIndex argument and the index field of its entries are now deprecated. StreamManager no longer reads these fields, and they will be removed in version 2.0. Developers using these fields directly should update their code to remove dependency on them.
Check before upgrading
- MessageTupleManager.get defaultIndex argument will be removed in version 2.0
- MessageTupleManager entries' index field will be removed in version 2.0
Source
LangGraph JS Releaseshttps://github.com/langchain-ai/langgraphjs/releases/tag/%40langchain%2Flanggraph-sdk%401.15.0AI-assisted, verified against the source. This post was drafted with AI from the primary source linked above and checked automatically against it. For anything you depend on, read the original.
- #langgraph
- #javascript
- #agenticai
- #statemanagement
- #developertools
