@langchain/langgraph-sdk
1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed
1.17.0 is the newest release of 1.x.
In short
4 fixed
Release note
Patch Changes
sdk: A reply cut off mid-stream, for example by
stop(), no longer lingers inuseStreammessages after its run ends: it is dropped as soon as the run ends, stays gone after a page refresh, and is dropped in other tabs watching the thread too. A reply that finished streaming before the run paused for input stays visible while paused and is replaced, not duplicated, when the run resumes. Streaming message handles for a cut-off message now settle with anabortederror instead of never resolving.Opening a thread with recent activity no longer replays it in
useStream. Every new stream subscription receives the thread's recent events again, and the controller applied them on top of the state it had just loaded, somessages,valuesandtoolCallsrewound to earlier turns and rebuilt themselves while old tool calls flashed through running and finished. The controller now skips events produced before the checkpoint it loaded. Scoped views, such asuseMessageson a subagent, still receive the full history.A
submit()sent right after opening a thread also no longer ends early. A replayed completion from an earlier run used to settle it, clearisLoadingand fireonCompletedwhile the new run was still going.messagesProjection(), the root-namespace messages projection acquired throughStreamController.registry, now fills from the root event stream. It threw aReferenceErroron every event and stayed empty. The framework hooks were not affected:useMessagesreturnsstream.messagesfor the root.Stop the protocol WebSocket transport from reconnecting when the server closes the socket with 4000 plus a 4xx status (4403, 4404, 4422 and the like; 4408 and 4429 still reconnect): the event stream now ends at once with an error that carries the
status. Other 4xxx closes still reconnect, with thestatuson theonReconnectcause. A WebSocket thread stream that fails for good now reachesThreadStream.onError, souseStreamsetserrorand clearsisLoading, as it already did for SSE. A command whose send fails no longer leaves a response promise behind to be rejected later as an unhandled rejection.
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.