@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 breaking4 new2 fixed
- BreakingTo check
The client no longer sends a
POSTorPATCHrequest again after it may have reached the server, so a retry can no longer create a second run or repeat a protocol command. These requests are now retried only when the connection failed before they were sent (for example, the connection was refused or the host was not found).GET,HEAD,OPTIONS,PUTandDELETErequests are retried as before.
Release note
Minor Changes
client.runs.streamandclient.runs.joinStreamtakestreamNamespaces, the namespaces of a run to stream (""is the root graph), each without the subagents it starts. Servers that support it reportstream_namespacesin/info; older servers ignore it and send every event. A reconnect no longer re-sends query params itsLocationalready carries, so the URL stops growing on every reconnect.
Patch Changes
Add a
reasonoption toclient.runs.cancel. Setreason: "taken"to mark run input absorbed for steering; the server records acancel_reasonstarting withtaken:.Type the
endevent that closes a run stream asEndStreamEvent: its data carries the run'srun_idand finalstatus, or isnullfrom servers that send it without data.When the
threadIdoption ofuseStreamchanges while the last run's values still hold a pending headless tool call, the hook no longer runs that tool again. It also no longer resumes the new thread, or a thread it creates after a switch tonull, with the previous thread's interrupt id. Passing back thethreadIdof a threadsubmitcreated no longer runs its pending tool again either.The client no longer sends a
POSTorPATCHrequest again after it may have reached the server, so a retry can no longer create a second run or repeat a protocol command. These requests are now retried only when the connection failed before they were sent (for example, the connection was refused or the host was not found).GET,HEAD,OPTIONS,PUTandDELETErequests are retried as before.Add
cancel_reasonto theRuntype and toRunSelectField. The Agent Server returns why a run was cancelled, but callers had to cast to read it.ThreadsClient.getStateandThreadsClient.getHistoryaccept aselectoption to return only some fields, e.g.select: ["values.messages"]to read a single state key. Exports the newThreadStateSelectFieldtype and the existingThreadSelectFieldtype from the package root.
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.