Packages

@langchain/langgraph-sdk

1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed

Upgrading @langchain/langgraph-sdk From 0.1.6 to 1.17.0

101 releases in betweennotes for 97

Reading releases, release notes and advisories…

Other targets from 0.1.6Newest 0.x0.1.10
  1. 0.1.6yours
  2. 4 releases
  3. 1.0.0major
  4. 95 releases
  5. 1.17.0target
  6. 4 pre
3+
changes to make
0
advisories fixed
47+
new
158+
fixes

Counted from 97 of 101 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking1.0.0
  • Deprecated1.15.0
  • Deprecated1.8.12

Release by release

  1. 1.17.0

    17 Nov 20262 new · 15 fixes
    • New

      ToolCallStatus has a fourth value, "incomplete": the call has no result, and no run can still give one, because the run stopped, failed, or waits on an interrupt, or a later message closed the call's turn. seedToolCallsFromMessages gives it to such calls. Pass { isLoading: false } when no run streams. It defaults to true, which leaves the calls of the latest turn "running" as before. Calls assembled from tools events don't get it. On 1.x bindings, a subagent panel loaded from history now shows an earlier turn's unanswered call as "incomplete". Code that switches over every ToolCallStatus needs a case for the new value.

    • New

      useStream accepts stateKeys, the values keys your UI reads. Opening a thread then sends select on GET /threads/{thread_id}/state for those keys, the messages key, and the top-level fields the hook reads itself, so the server can skip the rest of the state. stream.values contains only those keys plus the messages key, after loading and while a run streams, including on a server that ignores select. A custom adapter's getState receives { select }, and HttpAgentServerAdapter forwards it. Without stateKeys, nothing changes.

    • Fixed

      When a CustomStreamOrchestrator run fails before sending values, the keys other than messages that its submit showed go back to what they were, or away if they were new. Its message stays. A run that sent values shows the transport's, and one that succeeds, pauses or is stopped without them keeps the keys as shown, since a transport needn't send values.

    • Fixed

      StreamOrchestrator no longer takes the frames of a run @langchain/react 1.x started for its state. A page that moved to @langchain/react 2.0 while such a run went on joined it, by opening its thread, by joining a run 1.x queued, or when its thread watcher saw the run start. On the Agent Server its messages then went away until the run ended. On the JS dev server it stopped loading before the run ended and missed the run's last message until a reload.

  2. 1.16.0

    12 Nov 20266 new · 8 fixes
    • 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) from GET /info. client.runs.stream() and client.runs.joinStream() take per-call reconnect options: maxReconnectAttempts (with 0, a dropped stream throws instead of reconnecting), reconnectDelayMs, onReconnect (called with attempt, cause, lastEventId and delayMs) and onConnected. client.threads.joinStream() also sends its modes as one comma-joined stream_modes, the only form older servers read. The Run type has kwargs.

    • New

      respond(value, { interruptId? }) answers an interrupt, the newest one when no id is given, and respondAll({ [interruptId]: value }) answers several in one run. Both take update, goto, config, metadata and strictResume. They ask for strict resume unless strictResume is false, 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 optimisticValues shows those instead, and optimistic: false turns this off.

  3. 1.15.0

    Deprecation7 Nov 20264 fixes
    • Deprecated

      client.runs.joinStream takes a checkpointId option, sent as the checkpoint_id query parameter: servers that support it send only the run's events after that checkpoint, or the whole run when it is not one of the run's, and other servers ignore it. With reconnectOnMount, the useStream hook now rejoins a running run once the thread state has loaded, from the loaded head's checkpoint, so a reload no longer replays the run from its start over the state it just loaded. A streamed message now updates the message with its id wherever it is in the list, so one the loaded state already holds, or one a values event moved, is not appended again or written over another. MessageTupleManager.get's defaultIndex argument and the index field of its entries are deprecated: StreamManager no longer reads them, and they will be removed in 2.0.

    • Fixed

      After submit(input, { forkFrom }), messages shows only the new branch. A fork's checkpoints restart at a lower step, so they were treated as an old replay and merged add-only, which kept every message from the abandoned branch until a reload. Also, useMessageMetadata(...).parentCheckpointId now keeps the parent of the first checkpoint that carried each message, instead of moving every message to the latest checkpoint's parent, so forking from it edits the right message.

    • Fixed

      sdk: A hydrate() of the thread already shown no longer leaves isLoading stuck on true after the run ends: when it reopens the thread's stream after the connection dropped, when the run ends while it reads the state, or when it finds a run on a thread that was idle. When it finds a run going, the messages it loaded stay on screen while the stream replays the run. The stream also picks up interrupts raised inside subagents again after it reconnects.

    • Fixed

      sdk: stop() cancels the run respond() or respondAll() started, also when it is called before that run starts, and shows again the interrupts the cancel left waiting.

    • Fixed

      sdk: submit() without a multitaskStrategy, while the thread shows a run in flight, now sends interrupt, so the server cancels the run the client stopped following instead of queueing the new one behind it. Otherwise it still sends only a strategy the caller passed.

  4. 1.14.0

    6 Nov 20262 new · 3 fixes
    • New

      sdk: Hide the interrupts another client answered when the server sends input.answered, and route that event to the input channel

    • New

      sdk: Add strictResume, so a server with strict resume refuses an answer to an interrupt that is no longer waiting. client.runs.create(), stream() and wait() send it as strict_resume, and useStream's submit() passes it on. With respond() and respondAll(), the refusal is an UnknownInterruptError on error with reason, interruptIds and pendingIds, which isUnknownInterruptError(error) recognizes, and the interrupts still waiting show again.

    • Fixed

      useStream ignores a tools event of a kind it doesn't know, such as langgraph's own tool-started payload, instead of throwing Unexpected tool event inside a state update, which crashed the app's render.

    • Fixed

      Run streams take the lifecycle stream mode, typed as LifecycleStreamEvent: an event when each subgraph starts and ends, with the id of the tool call that started it.

    • Fixed

      sdk: run.start sends the multitask strategy as multitask_strategy, like the protocol's other fields, as well as multitaskStrategy, which older servers read.

  5. 1.13.0

    5 Nov 20263 new · 4 fixes
    • New

      client.runs.stream and client.runs.joinStream take streamNamespaces, the namespaces of a run to stream ("" is the root graph), each without the subagents it starts. Servers that support it report stream_namespaces in /info; older servers ignore it and send every event. A reconnect no longer re-sends query params its Location already carries, so the URL stops growing on every reconnect.

    • New

      Add a reason option to client.runs.cancel. Set reason: "taken" to mark run input absorbed for steering; the server records a cancel_reason starting with taken:.

    • New

      Add cancel_reason to the Run type and to RunSelectField. The Agent Server returns why a run was cancelled, but callers had to cast to read it.

    • Fixed

      Type the end event that closes a run stream as EndStreamEvent: its data carries the run's run_id and final status, or is null from servers that send it without data.

    • Fixed

      When the threadId option of useStream changes 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 to null, with the previous thread's interrupt id. Passing back the threadId of a thread submit created no longer runs its pending tool again either.

    • Fixed

      The client no longer sends a POST or PATCH request 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, PUT and DELETE requests are retried as before.

    • Fixed

      ThreadsClient.getState and ThreadsClient.getHistory accept a select option to return only some fields, e.g. select: ["values.messages"] to read a single state key. Exports the new ThreadStateSelectField type and the existing ThreadSelectField type from the package root.

  6. 1.12.10

    4 Nov 20262 fixes
    • Fixed

      When a headless tool finishes after a switch to another thread, StreamOrchestrator no longer sends its result to the new thread, keyed by the previous thread's interrupt id, and the useStream hook no longer streams the previous thread's resumed run into the new thread's view and no longer aborts a run the new thread is streaming. The call stays pending on its own thread and runs again when that thread is shown.

    • Fixed

      A thread run stream from client.runs.stream() or client.runs.joinStream() that ends without an error and without an end or error event now asks the server for the run's status. If the run is still pending or running, for example because a proxy timeout or a server restart ended the response, the stream reconnects from the last event as it does after a dropped connection, instead of ending early with a cut answer. A 429, a 5xx or a network error on that check is handled like a dropped connection too. This adds one request at the end of such a stream.

  7. 1.12.9

    30 Oct 202614 fixes
    • Fixed

      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.

    • Fixed

      A run abandoned by clear() or stop() no longer runs onSuccess, so a thread switch during a reconnect backoff no longer loads the previous thread's history.

    • Fixed

      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 useStream hook and StreamOrchestrator; 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 custom transport.

    • Fixed

      With history enabled, joinStream in the useStream hook and StreamOrchestrator now shows the thread state read after the joined run ends, as submit already does, instead of the joined stream's last values.

  8. 1.12.8

    26 Oct 20261 fix
    • Fixed

      sdk: Stop retrying cancelled requests, release abort listeners and emit CR-terminated SSE lines at once

29 other lines we could not sort, mostly version bumps
  • A submit stays on the thread the first one created, also one made while that run streams. Every submit after the first started a new thread.

    1.17.0
  • A submit keeps the values shown and shows its input at once, instead of showing initialValues until the server answered. The messages shown at once go to the transport as dicts with ids, so the server's copy replaces them, and a backend should keep those ids. optimistic: false shows nothing early and sends the input as passed. initialValues show until a run streams, and only on the first thread.

    1.17.0
  • A submit made during a run is listed in queueEntries until its turn. cancelQueueItem(), clearQueue(), a thread switch and stop() drop it before it starts.

    1.17.0
  • respond() and respondAll() send answers through the transport as a resume command, and hide the answered interrupts until that run ends. Without an id, respond() answers the interrupt interrupt shows, the first one. respondAll() resolves once its run starts.

    1.17.0
  • hydrate(threadId) switches to that thread and reads nothing, since a custom transport has no thread routes.

    1.17.0
  • StreamEngine is the interface a framework binding uses, and both StreamOrchestrator and CustomStreamOrchestrator implement it.

    1.17.0
  • onCreated gets the run id from the first metadata event of each run's stream. The option was accepted before and never called.

    1.17.0
  • The new onRunEnd option gets { runId, reason } when each run's stream ends, before its submit() resolves. The reason is "interrupt" when the stream sent an interrupt, "error" when it failed, also by timing out, "stopped" when it was aborted, as by stop() or a thread switch, and "success" otherwise. A run the engine's dispose() stops isn't reported.

    1.17.0
  • An onCreated or onRunEnd that throws is logged, and affects neither the run nor the ones after it.

    1.17.0
  • Switching to another thread calls onThreadId, through switchThread(), syncThreadId() or hydrate(). Before, only a submit that created a thread called it.

    1.17.0

4 internal lines (docs, tests, tooling) left out.

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.