@langchain/langgraph-sdk
1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed
1.17.0 is the newest release of 1.x.
In short
1 faster13 fixed
Release note
Patch Changes
Fix SSE multiline JSON framing, colonless fields, stream-leading BOM handling, and empty event ID resets during reconnection. Match Python streaming behavior: empty payloads yield null, events inherit the reconnect cursor, and ID-only/retry-only blocks update internal state without being yielded to callers. Cleared event IDs are exposed as undefined. Pending unnamed data is flushed at EOF, matching Python's existing tolerant EOF behavior.
A run abandoned by
clear()orstop()no longer runsonSuccess, so a thread switch during a reconnect backoff no longer loads the previous thread's history.A headless tool call still waiting for its result when a thread opens, for example after a page reload, now runs once and resumes the run in the
useStreamhook andStreamOrchestrator; before, nothing ran and the thread stayed paused. Effects replayed by StrictMode, Fast Refresh or<Activity>no longer run a pending headless tool twice in the hook, nor, under Fast Refresh or<Activity>, with a customtransport.With history enabled,
joinStreamin theuseStreamhook andStreamOrchestratornow shows the thread state read after the joined run ends, assubmitalready does, instead of the joined stream's last values.Joining a run from its first event in a mount that already streamed it no longer doubles each message's text, subagent messages included. A join that resumes from a
lastEventIdstill continues the message where it left off.With history enabled,
submitin theuseStreamhook andStreamOrchestratorno longer pins the run to the cached head of the shown branch when the latest branch is shown, so turns added elsewhere since the history was read (another tab, a cron, an API call, or this tab's own earlier run when a second submit was queued behind it) stay on the shown branch instead of moving to a sibling branch. A shown branch whose head is not the newest loaded checkpoint still forks from that head.Without history, the
useStreamhook andStreamOrchestratornow read the thread again after a run that succeeds when the state shown had an interrupt, a node still to run or a task error, so an answered approval no longer comes back and an old error goes away. A run on a thread that showed none of these makes no extra request, and a failed read reports no error. With history, a failed read after a run no longer fails the run in the hook or skipsonFinishinStreamOrchestrator.A stream that reconnects now gets a fresh set of reconnect attempts each time an event arrives, as the Python SDK does, so a long stream no longer gives up at its sixth drop when every reconnect worked. A frame with only an
id:or aretry:field does not count as an event.stop()in theuseStreamhook andStreamOrchestratorno longer loses the session. Without history and without anonFinishthat takes the thread state, stopping a running stream put back the thread state read when the thread opened, so the turns sent since disappeared andonStopedits were overwritten. A stop now reads the thread and shows what the server kept, with theonStopedits applied on top. With or without history, a stop no longer shows the cancellation as an error, or the node it cut off as a breakpoint.After a reload, a subagent delegated by an older turn is no longer shown with the tool results of a newer turn.
After a reload, a subagent that is still running or waiting on an approval no longer shows the state of a regular tool called before it in the same message.
With
streamSubgraphs, values from a subgraph that is not a subagent no longer replace the root state while the subgraph runs. Its results show once its node returns.A numeric
throttlenotifies at most once per interval while values keep changing, as documented, instead of waiting until they stop.sdk: re-parse streamed tool call args at most every 50ms instead of on every chunk
The
useStreamhook from@langchain/langgraph-sdk/reactre-parsed a streaming tool call's full arguments on everymessageschunk, so the work grew quadratically with the length of the arguments. It now reuses the previous parse and re-parses at most every 50ms, and once more when the stream ends. Subagent messages get the same treatment.The
@langchain/corepeer dependency is raised from^1.1.48to^1.2.18, the first release that parses tool call chunks lazily. Older releases parse them on every chunk regardless, so they would get the delay without the speedup.
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.