@langchain/langgraph-sdk
1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/langgraph-sdk From 1.15.0 to 1.16.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
New in
StreamOrchestrator(@langchain/langgraph-sdk/ui): subagent panels that stream only while they are open. - New
Add
client.info(), which reads the server's version and the features it supports (flags) fromGET /info.client.runs.stream()andclient.runs.joinStream()take per-call reconnect options:maxReconnectAttempts(with0, a dropped stream throws instead of reconnecting),reconnectDelayMs,onReconnect(called withattempt,cause,lastEventIdanddelayMs) andonConnected.client.threads.joinStream()also sends its modes as one comma-joinedstream_modes, the only form older servers read. TheRuntype haskwargs. - New
respond(value, { interruptId? })answers an interrupt, the newest one when no id is given, andrespondAll({ [interruptId]: value })answers several in one run. Both takeupdate,goto,config,metadataandstrictResume. They ask for strict resume unlessstrictResumeisfalse, so an answer to an interrupt that is no longer waiting fails its run instead of running the step again. During a run, the answer waits in the queue instead of interrupting it. An answered interrupt is hidden until its run ends, and shows again if the answer fails. The promise resolves once the run is created or queued. - New
A submit's input shows at once. Input messages without an id get one, so the run's copies replace them. Passing
optimisticValuesshows those instead, andoptimistic: falseturns this off.
- New
18 other lines we could not sort, mostly version bumps
- 1.16.0
With
filterSubagentMessages, runs ask the server forlifecycleevents, and withonToolEvent, fortoolsevents, when the server sends them on run streams. It reads/infoonce per client to know.onToolEventfires now: runs never asked fortoolsbefore. A server that refuses them with a 422, such as an older one during a rollout, gets the run again without them. - 1.16.0
Each subagent is tied to the tool call that started it, from its
lifecycleevents or from the tool call id deepagents puts on a subagent's tokens, so subagents with the same task text no longer swap. A subagent whose graph fails shows the error at once. Subagents still open when the server says their run failed or was cancelled, or whenstop()cancels it, end with an error. A run paused at an interrupt, a dropped connection orstop({ cancel: false })leaves them open. - 1.16.0
onChannelEvent(listener)hands every event of its streams to the listener in@langchain/react1.x's channel shape,{ method, params: { namespace, timestamp, data } }.CustomStreamOrchestratorhas it too. - 1.16.0
Runs are created with
streamResumableandonDisconnect: "continue", and each thread load joins the thread's running run from the loaded checkpoint. - 1.16.0
stop()stops the stream at once and cancels the run on the server, also a run it picked up after a load. A run whose id hasn't arrived yet is cancelled once it does. A run the app joins withjoinStream()keeps going, andstop({ cancel: false })anddispose()leave any run going. - 1.16.0
durableRuns: falsekeeps a run tied to its tab, as before this release. - 1.16.0
parentCheckpointIdis the checkpoint to fork from to edit the message. BetweentrackMessageMetadata()and its release, the engine reads it from the thread's history whenever it is idle with messages it hasn't placed yet: after a load, and after each run back to the checkpoints it already read. It reads what each step wrote, about 1 KB a step, and the whole messages only for messages no step wrote, such as ones added withupdateState. Messages more than about 500 steps back get none. - 1.16.0
optimisticStatusispendingfor an optimistic message until avaluesevent of its run holds it, thensent. A run that fails or is stopped before that marks itfailed, and one that succeeds or pauses marks itsent. A reload clears it. - 1.16.0
A run started elsewhere, such as in another tab or by a cron, is joined and streams here. A run that ended elsewhere reads the thread again, and an interrupt answered elsewhere is hidden at once.
- 1.16.0
It keeps one connection to the thread's
lifecyclestream, closed while a run streams here, while the queue holds runs and while the page is hidden, and it resumes from the last event it saw. On a server without a thread stream it stays off after one request.
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.