unstale

npm / @langchain/langgraph-sdk

@langchain/langgraph-sdk

What changed in @langchain/langgraph-sdk 0.1 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

21 breaking2 deprecations105 new APIs and options3 performance15 behavior and defaults142 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@langchain/langgraph-sdk 1272 changes

Breaking changes 21

  • StreamOrchestrator.respond() without an id now answers the first displayed interrupt; StreamController continues to answer the newest.

    1.17.0release notes

  • Thread-loading StreamOrchestrator instances now require activate(), which bindings call from an effect; pre-activation loads hold discovered runs, tools, and queued runs.

    1.17.0release notes

  • ToolCallStatus adds incomplete for calls that have no result and cannot receive one; exhaustive switches need to handle the new value.

    1.17.0release notes

  • Keeps runs going when a tab closes and resumes them on thread load; stop cancels the run unless cancellation is disabled.

    1.16.0release notes

  • Interrupt answers request strict resume unless strictResume is false, so answering an interrupt that is no longer waiting fails its run.

    1.16.0release notes

  • The peer dependency requirement is raised from ^1.1.48 to ^1.2.18, whose lazy tool-call chunk parsing is needed to avoid repeated parsing without the speedup.

    1.12.9release notes

  • Server closes with 4000 plus a 4xx status, except 4408 and 4429, now end the event stream with an error carrying status instead of reconnecting; other 4xxx closes still reconnect.

    1.12.5release notes

  • Send task paths and node-error-handler task paths now use Python-compatible shapes, changing task metadata and task ids for functional task() calls under those tasks.

    1.12.4release notes

  • Writes from tasks in one superstep are now applied and replayed in (task_path, task_id, idx) order instead of task-id order, aligning with Python and preventing run-to-run permutations.

    1.12.4release notes

  • Caller-supplied IDs are URL-encoded in request paths; raw IDs should be passed, and . and .. are rejected with an Invalid path segment error.

    1.12.2release notes

  • The transport reconnects when the server cleanly closes the event stream; maxReconnectAttempts: 0 retains the previous end-on-close behavior.

    1.11.0release notes

  • The core SDK no longer declares @langchain/svelte as an optional peer dependency.

    1.10.0release notes

  • The core SDK no longer declares @langchain/vue as an optional peer dependency.

    1.10.0release notes

  • User-initiated submit, respond, and respondAll writes commit synchronously in the triggering tick; high-frequency streaming writes remain macrotask-coalesced.

    1.9.24release notes

  • respond and respondAll apply updates optimistically, painting pushed messages immediately and reconciling them with the resumed run.

    1.9.24release notes

  • submit() input is echoed into values and messages immediately, with client-side IDs reconciled as the server streams back; non-message keys are shallow-merged and rolled back if no values arrive.

    1.9.17release notes

  • Protocol-v2 servers honor the caller's per-run strategy instead of hardcoding it, falling back to enqueue when omitted or unrecognized.

    1.9.10release notes

  • Removes the protocol-v2 StreamController submit({ command }) surface; HITL resume is handled by respond() only.

    1.9.10release notes

  • stream.stop() now cancels the active run by default before disconnecting the client.

    1.9.8release notes

  • Moved from a runtime dependency to a required peer dependency. Consumers using streaming or message coercion must install it explicitly or via @langchain/langgraph.

    1.9.4release notes

  • The low-level helper was removed; streaming responses are now handled natively by the SDK.

    1.0.0upgrade guide

Deprecations 2

  • The index field on MessageTupleManager entries is deprecated because StreamManager no longer reads it; it will be removed in 2.0.

    1.8.12, 1.15.0release notesrelease notes

  • The defaultIndex argument is deprecated because StreamManager no longer reads it; it will be removed in 2.0.

    1.8.12, 1.15.0release notesrelease notes

New APIs and options 89

  • Custom transports keep submits on the first thread, show submitted values and messages optimistically, and can disable early display with optimistic: false.

    1.17.0release notes

  • onRunEnd reports each run's id and completion reason before submit() resolves; lifecycle callback errors are logged without affecting runs.

    1.17.0release notes

  • A custom adapter's getState receives { select }, and HttpAgentServerAdapter forwards the selection.

    1.17.0release notes

  • CustomStreamOrchestrator exposes submits made during a run in queueEntries until their turn; cancellation, clearing the queue, switching threads, and stop() drop queued submits.

    1.17.0release notes

  • Pass { isLoading: false } when no run streams to mark unanswered calls incomplete; the option defaults to true and preserves the previous running status.

    1.17.0release notes

  • StreamEngine is the interface for framework bindings, implemented by both StreamOrchestrator and CustomStreamOrchestrator.

    1.17.0release notes

  • stateKeys limits loaded and streamed values to the UI's selected keys plus messages, and requests those fields from the server using select.

    1.17.0release notes

  • Adds a StrictMode-safe activation method for StreamOrchestrator.

    1.16.0release notes

  • Reads the server version and supported feature flags from GET /info.

    1.16.0release notes

  • Adds per-call reconnect options; setting maxReconnectAttempts to 0 makes a dropped stream throw instead of reconnecting.

    1.16.0release notes

  • Adds a callback for reconnect attempts, with attempt, cause, last event ID, and delay.

    1.16.0release notes

  • Adds durable run behavior; setting durableRuns to false keeps a run tied to its tab as before.

    1.16.0release notes

  • Adds a method to hydrate a thread, optionally identified by threadId.

    1.16.0release notes

  • Exports the MessageMetadataMap type for message metadata.

    1.16.0release notes

  • Stores metadata per message ID, including parentCheckpointId and optimisticStatus.

    1.16.0release notes

  • Delivers every stream event to a listener in the @langchain/react 1.x channel shape; also available on CustomStreamOrchestrator.

    1.16.0release notes

  • Adds a callback reporting run ID and whether the run ended in success, error, interrupt, or stopped.

    1.16.0release notes

  • Exports the OptimisticStatus type for optimistic message status.

    1.16.0release notes

  • Lets a submit show supplied optimistic values; optimistic: false turns this behavior off.

    1.16.0release notes

  • With queue set to local, submits made during a run stay on the client until the run ends instead of being queued on the server.

    1.16.0release notes

  • Finds a subagent's namespace after a reload from its tool message or a page of thread history.

    1.16.0release notes

  • Answers an interrupt, defaulting to the newest one, and supports strict resume and other run options.

    1.16.0release notes

  • Answers several interrupts in one run.

    1.16.0release notes

  • The Run type now includes kwargs.

    1.16.0release notes

  • When enabled, streams each subagent only to its scopes and keeps its messages out of the main conversation; it is off by default.

    1.16.0release notes

  • Acquires a subgraph scope and returns snapshot, subscription, and release functions so a subagent panel can stream while open.

    1.16.0release notes

  • Builds AssembledToolCall values from messages.

    1.16.0release notes

  • Adds a streamIdleReconnect option passed to every run stream and join.

    1.16.0release notes

  • Adds and exports SubgraphDiscovery and its snapshot and map types for discovering subgraphs from events.

    1.16.0release notes

  • Setting watchThread to false disables following the thread and its lifecycle stream.

    1.16.0release notes

  • Accepts a checkpointId option sent as checkpoint_id, allowing supported servers to stream events after that checkpoint.

    1.8.12, 1.15.0release notesrelease notes

  • Cancels the run started by respond() or respondAll(), including when called before that run starts, and shows interrupts left waiting by the cancellation.

    1.15.0release notes

  • Run streams accept the lifecycle stream mode, which emits typed events when each subgraph starts and ends, including the id of the tool call that started it.

    1.14.0release notes

  • Adds strict resume handling to run creation, streaming, waiting, and useStream submission; refusals expose an UnknownInterruptError with reason, interruptIds, and pendingIds.

    1.14.0release notes

  • The Run type and RunSelectField include cancel_reason so callers can read why a run was cancelled without casting.

    1.13.0release notes

  • The end event is typed as EndStreamEvent, with data containing the run_id and final status, or null when the server sends no data.

    1.13.0release notes

  • client.runs.cancel accepts a reason; setting it to "taken" marks run input as absorbed for steering.

    1.13.0release notes

  • ThreadsClient.getState and ThreadsClient.getHistory accept select to return only requested fields; ThreadStateSelectField and ThreadSelectField are exported from the package root.

    1.13.0release notes

  • client.runs.stream and client.runs.joinStream accept namespaces to stream, excluding subagents started by each namespace.

    1.13.0release notes

  • The method accepts an optional serialized task path; custom savers must persist it and return pending writes in the new sort order.

    1.12.4release notes

  • A new export provides comparison for the sort keys used to order pending writes consistently across checkpoint savers.

    1.12.4release notes

  • A new export provides the sort key used to order pending writes consistently across checkpoint savers.

    1.12.4release notes

  • The Agent Server graph factory ServerRuntime type is now exported from @langchain/langgraph-sdk.

    1.12.2release notes

  • Set queue to "server" to use durable server-side runs for the "enqueue" multitask strategy; queued submissions persist across reloads and are visible to other sessions. The default remains "local".

    1.12.0release notes

  • Message objects expose finish reasons and provider response metadata across message roles, accepting Python metadata and JavaScript responseMetadata event fields.

    1.11.2release notes

  • Add a responseSchema option to declare the expected resume value shape; Zod validates and parses the value, while raw JSON Schema passes through as-is.

    1.11.1release notes

  • Built-in streaming transports expose a callback after the initial connection becomes usable and after successful reconnects; its payload identifies the connection type and reconnect attempt.

    1.11.0release notes

  • The callback now receives the scheduled reconnect delay so applications can display accurate retry state.

    1.11.0release notes

  • Thread-stream run starts now support LangSmith replica routing.

    1.10.0release notes

  • Accepts endTime: null to clear a previously set cron end time; omitting endTime still leaves it unchanged.

    1.9.26release notes

  • respond(decision, { update, goto }) forwards goto alongside the interrupt resume in the same superstep.

    1.9.24release notes

  • respond(decision, { update, goto }) applies the state update in the same superstep as the interrupt resume, avoiding a separate updateState write.

    1.9.24release notes

  • Transport adapter paths entries may now be functions of the currently bound thread id, allowing request paths to vary by thread.

    1.9.22release notes

  • Custom AgentServerAdapters can implement optional setThreadId(threadId), which client.threads.stream calls when binding the active thread, including a lazily minted thread id.

    1.9.22release notes

  • Adds a framework-agnostic helper in the stream package that shares a ref-counted subscription with matching useChannel consumers.

    1.9.21release notes

  • Adds an Angular side-effect counterpart to useChannel that invokes an onEvent callback once per raw protocol event without re-rendering.

    1.9.21release notes

  • Exposes optional reconnect tuning on ThreadStreamOptions.

    1.9.21release notes

  • Adds a side-effect counterpart to useChannel that invokes an onEvent callback once per raw protocol event without re-rendering.

    1.9.21release notes

  • HttpAgentServerAdapter implements GET /threads/:id/state to retrieve thread state.

    1.9.20release notes

  • Hooks can opt out of optimistic submit behavior with optimistic: false.

    1.9.17release notes

  • Message metadata exposes optimistic submission status, transitioning from pending to sent or failed.

    1.9.17release notes

  • Accepts a plain checkpoint ID string and is folded client-side into config.configurable.checkpoint_id before run.start, so forkFrom is no longer sent over the wire.

    1.9.10release notes

  • Takes an options object with interruptId, namespace, config, and metadata; resumed runs can carry run-level configuration and metadata.

    1.9.10release notes

  • Adds a method to resume several interrupts pending at the same checkpoint in one command, including in the framework wrappers.

    1.9.10release notes

  • Adds stream.disconnect() so join/rejoin UIs can disconnect while leaving the agent running server-side.

    1.9.8release notes

  • Adds the cancel option so callers can use stop({ cancel: false }) to leave the agent running server-side.

    1.9.8release notes

  • AssembledToolCall exposes sync status and error for reactive bindings.

    1.9.5release notes

  • Cron search and count now support filtering by metadata.

    1.9.2release notes

  • Extracted the shared WithClassMessages<T> type to @langchain/langgraph-sdk/ui.

    1.8.1release notes

  • Custom transports support the onFinish callback, which is called when the stream completes.

    1.7.5release notes

  • Adds checkpointId support to runs.create.

    1.7.4release notes

  • Adds checkpointId support to runs.wait.

    1.7.4release notes

  • Adds checkpointId support to threads.updateState.

    1.7.4release notes

  • Adds the cancelMany method to the SDK.

    1.7.3release notes

  • Adds threads.prune to the SDK.

    1.7.3release notes

  • Adds the extract parameter to threads.search().

    1.6.5release notes

  • Adds a tools stream mode for tool lifecycle events.

    1.6.5release notes

  • Exports the stream error class so developers can use it from the SDK.

    1.6.4release notes

  • Adds the state_updated_at field to threads.

    1.6.3release notes

  • The useStream hook adds an interrupts array property to support multiple interrupts.

    1.6.1release notes

  • Adds support for pausing and unpausing crons in the SDK.

    1.5.6release notes

  • Client-side filtering of events is now available when joining a stream.

    1.5.4release notes

  • Adds onRunCompleted to control whether stateless cron threads are deleted automatically or kept for later retrieval.

    1.5.0release notes

  • Adds the delete_threads query parameter to the delete assistants API.

    1.5.0release notes

  • Exposes and passes down the interrupt generic type.

    1.5.0release notes

  • Exposes Thread["config"] to developers.

    1.4.4release notesrelease notesrelease notes

  • Tool call streaming now supports agent type inference, enabling type-safe streaming.

    1.4.4release notesrelease notesrelease notes

  • Pass an encoding format to select the wire format, switching between SSE and normal JSON responses without changing UI logic.

    1.0.0upgrade guide

  • The React hook supports pluggable transports, allowing more control over the network layer without changing UI code.

    1.0.0upgrade guide

Performance 3

  • Streaming tool-call arguments are reparsed at most every 50ms and once at stream end, instead of on every message chunk, reducing quadratic work; subagent messages receive the same treatment.

    1.12.9release notes

  • Concurrent identical history reads are coalesced within the SDK client; coalescing is skipped for caller-provided abort signals, raw response reads, and onRequest hooks.

    1.9.17release notes

  • Concurrent identical state reads are coalesced within the SDK client; coalescing is skipped for caller-provided abort signals, raw response reads, and onRequest hooks.

    1.9.17release notes

Behavior and default changes 15

  • Thread switches through switchThread(), syncThreadId(), or hydrate() now call onThreadId.

    1.17.0release notes

  • CustomStreamOrchestrator.hydrate(threadId) switches threads without reading state, because custom transports have no thread routes.

    1.17.0release notes

  • StreamOrchestrator calls onCreated for each server-queued run when it starts streaming, after the preceding run's onRunEnd.

    1.17.0release notes

  • CustomStreamOrchestrator sends answers as resume commands and hides answered interrupts until the run ends; without an id it answers the first displayed interrupt.

    1.17.0release notes

  • With reconnectOnMount, stop() before the run-creation response now keeps the request open for up to five seconds to learn the run id and cancel the run.

    1.17.0release notes

  • Sends join stream modes as one comma-joined stream_modes value for compatibility with older servers.

    1.16.0release notes

  • Runs request tools events when the server sends them, allowing the callback to fire; older servers that reject the request are retried without it.

    1.16.0release notes

  • Follows thread activity between activate and dispose, joining runs started elsewhere and refreshing when runs end elsewhere.

    1.16.0release notes

  • When reconnectOnMount is enabled, rejoins a running run after thread state loads, from the loaded head's checkpoint, avoiding replay from the run's start.

    1.8.12, 1.15.0release notesrelease notes

  • The input channel now receives input.answered events, and interrupts answered by another client are hidden.

    1.14.0release notes

  • SQLite and Postgres gain a task_path column, while Redis and MongoDB documents gain a task_path field; SQLite and Postgres migrate it automatically on setup().

    1.12.4release notes

  • Unsolicited server error frames and shared streams that exhaust reconnect attempts reach stream.error; useStream sets error, clears isLoading, and settles the in-flight submission as failed.

    1.11.0release notes

  • Interrupts from every namespace, including nested subgraphs and subagents, are now mirrored onto rootStore.interrupts for live HITL UIs.

    1.9.29release notes

  • Built-in transport adapters no longer require threadId at construction; request URLs derive from the currently bound thread.

    1.9.22release notes

  • useStream now supports multi-subagent tracking.

    1.6.0release notes

Fixes and other changes 142

  • A subagent rebuilt from loaded messages takes its namespace from artifact.checkpoint_ns when the task tool message records it.

    1.17.0release notes

  • When a run fails before sending values, submitted non-message keys are restored or removed if newly introduced; the submitted message remains.

    1.17.0release notes

  • A subagent called by the main agent now has depth: 1 before it runs and after a reload.

    1.17.0release notes

  • runId is optional because a submit stopped before its run id arrives calls onRunEnd with reason: "stopped" and no runId.

    1.17.0release notes

  • A stop() in the same tick as submit() now stops the pending submit before it shows input or sends anything; a concurrent switchThread() drops it too.

    1.17.0release notes

  • A subagent namespace lookup that finds no history while a run is streaming waits for the subagent to start or the run to end, then looks again.

    1.17.0release notes

  • When a hidden page's thread watcher has no event id to resume from, it reads thread state once when the page becomes visible, so runs from other clients appear without reload.

    1.17.0release notes

  • Loaded interrupts are displayed only after checking for an in-progress run; the lookup may wait up to 10 seconds, and respond() without an id waits for it.

    1.17.0release notes

  • Joining a run started by a 1.x binding reads only lifecycle events; the page retains its displayed state until the run ends, then shows thread state.

    1.17.0release notes

  • Task errors returned as { message, name } are displayed as Error instances with the server-provided message.

    1.17.0release notes

  • Submits queued during a run create runs one at a time in submit order; failed creates do not block later ones, and clearing or switching threads drops waiting submits.

    1.17.0release notes

  • After stop(), submitted inputs not saved by the server remain visible after saved messages until the next run, reload, or thread switch.

    1.17.0release notes

  • Subgraph panels show all subgraph messages, including messages shared with the main conversation; subagent panels continue excluding shared messages.

    1.17.0release notes

  • Resumable streams reconnect when the server does not send a readable Location header, rebuilding the reconnect path from available run information.

    1.16.0release notes

  • A submit using reject during another streaming run now sends reject to the server so its rejection reaches onError, rather than queueing.

    1.16.0release notes

  • Queued submits now request the same stream modes as direct submits, restoring token-by-token replies and other event consumers.

    1.8.11, 1.16.0release notesrelease notes

  • Run streams and joins now filter events outside requested namespaces client-side when the server does not support that filter.

    1.16.0release notes

  • Does nothing and returns the existing stream promise when asked to join a run already streaming or queued.

    1.16.0release notes

  • Tool calls whose tool message has status error are read as failed, with the message text as the error.

    1.16.0release notes

  • Calls the onError passed to submit when that run fails, after the hook's own onError, for server and custom transport paths.

    1.8.13, 1.16.0release notesrelease notes

  • Hydrating an already shown thread no longer leaves isLoading stuck on true when reopening its stream, when a run ends during state loading, or when a run is found on an idle thread.

    1.15.0release notes

  • When a run is found going, messages loaded during hydration stay on screen while the stream replays the run.

    1.15.0release notes

  • The stream picks up interrupts raised inside subagents after reconnecting.

    1.15.0release notes

  • After submit(input, { forkFrom }), messages shows only the new branch instead of retaining messages from the abandoned branch until reload.

    1.15.0release notes

  • Keeps the parent of the first checkpoint that carried each message, so forking from it edits the right message.

    1.15.0release notes

  • Without a multitaskStrategy, submitting while a thread shows a run in flight sends interrupt so the server cancels the run the client stopped following; otherwise only a caller-provided strategy is sent.

    1.15.0release notes

  • A streamed message updates the matching message by id wherever it appears in the list, rather than appending a duplicate or overwriting another message.

    1.8.12, 1.15.0release notesrelease notes

  • run.start sends the multitask strategy under the protocol field name while retaining multitaskStrategy for older servers.

    1.14.0release notes

  • useStream ignores tool events of unknown kinds instead of throwing Unexpected tool event during a state update and crashing the app's render.

    1.8.12, 1.14.0release notesrelease notes

  • POST and PATCH are retried only when the connection failed before sending, preventing duplicate runs or repeated protocol commands.

    1.13.0release notes

  • Reconnects no longer resend query parameters already carried by the Location URL, preventing the URL from growing on every reconnect.

    1.13.0release notes

  • Switching threadId no longer reruns a pending headless tool or resumes a thread with the previous thread's interrupt id.

    1.13.0release notes

  • If a stream ends without an error or terminal event, it checks the run status and reconnects from the last event if the run is pending or running; transient errors on the status check are treated like dropped connections.

    1.12.10release notes

  • When switching threads, useStream no longer streams a previous thread’s resumed run into the new thread’s view or aborts a run the new thread is streaming; the pending call resumes when its own thread is shown.

    1.12.10release notes

  • With history enabled, joinStream now shows the thread state read after the joined run ends, rather than the joined stream's last values.

    1.12.9release notes

  • Joining a run from its first event in a mount that already streamed it no longer duplicates message text; resuming from lastEventId still continues the message.

    1.12.9release notes

  • A run abandoned by clear() or stop() no longer invokes onSuccess, preventing a thread switch during reconnect backoff from loading the previous thread's history.

    1.12.9release notes

  • Each event resets the reconnect-attempt allowance, so long streams do not give up after repeated successful reconnects; id-only and retry-only frames do not count as events.

    1.12.9release notes

  • SSE parsing now handles multiline JSON, colonless fields, a leading BOM, empty event ID resets, empty payloads, reconnect cursors, and pending unnamed data at EOF consistently with Python.

    1.12.9release notes

  • Stopping reads the thread state retained by the server and applies onStop edits on top; cancellation is not shown as an error or breakpoint.

    1.12.9release notes

  • Without history, successful runs refresh the thread when shown state had an interrupt, pending node, or task error; failed refreshes do not report errors. With history, refresh failures no longer skip onFinish.

    1.12.9release notes

  • Values from a non-agent subgraph no longer replace root state while it runs; its results appear when its node returns.

    1.12.9release notes

  • After reload, a subagent delegated by an older turn is no longer displayed with tool results from a newer turn.

    1.12.9release notes

  • After reload, a running or approval-waiting subagent no longer displays the state of an earlier regular tool call in the same message.

    1.12.9release notes

  • With history enabled, submitting on the latest shown branch no longer pins the run to a cached head, keeping newer turns on that branch; older shown heads still fork.

    1.12.9release notes

  • A numeric throttle now notifies at most once per interval while values continue changing, rather than waiting until they stop.

    1.12.9release notes

  • A pending headless tool call resumes once when a thread opens, including after reload; replayed effects no longer run it twice.

    1.12.9release notes

  • Without history, successful runs refresh the thread when shown state had an interrupt, pending node, or task error; failed refreshes do not report errors. With history, refresh failures no longer fail the run.

    1.12.9release notes

  • Requests cancelled with an AbortSignal or timeoutMs are no longer retried, preventing stop() from keeping isLoading on while retries back off.

    1.12.8release notes

  • The decoder emits lines ending in a bare CR immediately and preserves a stream's final blank line when it ends with CR.

    1.12.8release notes

  • Timed requests no longer leave an abort listener on the caller's signal, avoiding listener buildup when a signal is reused.

    1.12.8release notes

  • When a command reports applied_through_seq: 0, the SDK now finds where the command's run starts on the thread stream and treats everything before it as history, preventing resolved interrupts from returning after reload.

    1.12.7release notes

  • Unrecognized delta variants are ignored, and consume returns undefined for those events, avoiding frozen scoped views, unsettled messages, and unhandled rejections.

    1.12.6release notes

  • Tool-call args streamed as tool-call-delta slices are appended and shown live in useStream, scoped useMessages, thread.messages, subgraph.messages, and subagent.messages; block-delta snapshots still replace the args.

    1.12.6release notes

  • A command whose send fails no longer leaves a response promise behind to be rejected later as an unhandled rejection.

    1.12.5release notes

  • The root-namespace messages projection now fills from the root event stream instead of throwing on every event and remaining empty.

    1.12.5release notes

  • Handles for cut-off messages now settle with an aborted error instead of remaining unresolved.

    1.12.5release notes

  • A replayed completion from an earlier run no longer settles a newly submitted run early, clears isLoading, or fires onCompleted while the new run is still going.

    1.12.5release notes

  • A WebSocket thread stream that fails permanently now reaches ThreadStream.onError, allowing useStream to set error and clear isLoading, as with SSE.

    1.12.5release notes

  • Cut-off replies are removed when their run ends and stay removed across refreshes and other tabs; completed replies remain visible during pauses and are replaced when the run resumes.

    1.12.5release notes

  • The controller skips events produced before the loaded checkpoint, preventing earlier turns from replaying into stream state; scoped views still receive full history.

    1.12.5release notes

  • The first update superstep is sealed so touched DeltaChannels snapshot on the update checkpoint, preventing finished sibling writes and update writes from replaying in the wrong order.

    1.12.4release notes

  • Resumed superstep delta writes replay in live order, interleaving with loaded writes by task path; loaded writes are no longer stored twice.

    1.12.4release notes

  • Detection now accepts both the old and new Send-task path shapes.

    1.12.4release notes

  • Update tasks carry (__interrupt__, i) task paths so multiple updates in one superstep writing the same DeltaChannel replay in the order given.

    1.12.4release notes

  • Client construction now copies defaultHeaders instead of writing x-api-key into the caller's object, preventing clients from sharing headers and sending another client's API key.

    1.12.3release notes

  • The reconnect attempt counter resets after each successful connect, so idle reconnects no longer consume the configured maximum.

    1.12.1release notes

  • Protocol request errors now retain the HTTP status.

    1.12.1release notes

  • The protocol SSE transport now ends with the error instead of retrying on 4xx responses, except for 408 and 429.

    1.12.1release notes

  • Protocol request errors now retain the response body text.

    1.12.1release notes

  • After stop() cancels a run mid-turn, stale uncheckpointed messages are reconciled against persisted thread state or cached history instead of remaining visible.

    1.12.1release notes

  • Frontend message objects retain namespace, graph node, callback run_id, and message-start metadata, including on messages returned by awaiting a StreamingMessage.

    1.11.2release notes

  • Interleaved streams at the same namespace and node remain separate using callback run IDs, with fallback behavior for legacy events without run IDs.

    1.11.2release notes

  • Populate the standard AI usage_metadata field, retain additional_kwargs.usage for compatibility, and preserve earlier usage when a finish event omits it.

    1.11.2release notes

  • runs.stream() now sends checkpoint_id in its request body, so a checkpointId passed to client.runs.stream() forks from the requested checkpoint.

    1.11.0release notes

  • When a root event stream fails or closes during an active run, the controller records the transport error, clears isLoading, and permits a later submission to start a fresh subscription.

    1.11.0release notes

  • Persisted sequence tracking now looks up the appropriate sequence index during page rehydration, preventing stream information from being lost on reload.

    1.11.0release notes

  • After a passive thread rejoin, unknown interrupts are checked against server thread state at terminal lifecycle; pending interrupts are shown and other interrupts are dropped as history.

    1.11.0release notes

  • Interrupt resolution now prioritizes the local cache of responses, then reconciles them with remote state when a run reaches a terminal event.

    1.11.0release notes

  • In-place message metadata updates from values are now applied.

    1.10.2release notes

  • stream.interrupts remains truthful after sequential multi-interrupt resume.

    1.10.2release notes

  • Historical interrupts are filtered after a command is accepted, preventing an already answered HITL form from reappearing after reload.

    1.9.31release notes

  • Calling hydrate(null) with a pending interrupt now resets the snapshot first, clearing the old conversation instead of leaving it on screen.

    1.9.30release notes

  • Deferred terminal resets no longer clear isLoading when a newer running lifecycle has already arrived, such as during HITL resume or SSE replay.

    1.9.30release notes

  • When a values snapshot echoes an optimistic human message with the same content and committed additional_kwargs, stream.messages now adopts the server copy without letting poorer snapshots strip richer metadata.

    1.9.30release notes

  • With replay disabled, input channel events are now matched using inferChannel, so input.requested events are delivered on the root-bus fast path.

    1.9.29release notes

  • HTTPError now always includes the underlying Response, allowing callers to inspect the original HTTP response.

    1.9.29release notes

  • For a missing externally minted thread, the root stream pump starts only after dispatch succeeds, preventing the first run's events from being lost.

    1.9.29release notes

  • When callers pass interruptId without namespace, respond resolves the namespace from the thread's interrupts instead of defaulting to root.

    1.9.29release notes

  • respond() and respondAll() now clear the hydrated interrupt allowlist, allowing follow-on HITL interrupts to appear on stream.interrupt and free-text submits to resume with the correct payload.

    1.9.28release notes

  • A stale hydration now stops after getState() resolves if the thread was cleared, preventing stale state from being applied or a reconnect from opening with a null thread.

    1.9.28release notes

  • Post-connect SSE reconnects omit the carried since value and rely on durable event_id dedup, preventing replay history from being filtered out.

    1.9.27release notes

  • Custom fetch shims no longer disable SSE reconnects; reconnect options are also plumbed through framework useStream bindings.

    1.9.26release notes

  • Final projection disposal is deferred by one microtask so reactive updates that release and immediately reacquire the same scoped projection keep the existing stream subscription.

    1.9.23release notes

  • SSE streams reconnect when server keep-alive heartbeats stop, using Last-Event-ID or since; auto mode arms only after heartbeats are observed to avoid false triggers during long tool calls and HITL pauses.

    1.9.22release notes

  • Prevents replayed messages from an idle thread's finished run from rebuilding and re-streaming already-complete messages.

    1.9.21release notes

  • Protocol thread streams now reconnect automatically after disconnect, resuming SSE with since.

    1.9.21release notes

  • useStream inherits apiUrl from the transport, preventing hydration from defaulting to localhost:8123.

    1.9.20release notes

  • StreamController now prefers the adapter's getState() before client.threads.getState when hydrating state.

    1.9.20release notes

  • Subscriptions now resume across serial runs, so useChannel keeps accumulating events across prompts on the same thread.

    1.9.18release notes

  • Hydration seeds deep-agent subagent cards from checkpoint messages and subgraph hosts from one bounded getHistory read, so fan-out discovery reappears on refresh without waiting for SSE replay.

    1.9.17release notes

  • Resumed run failures and input.respond dispatch failures now populate stream.error, matching submit() behavior so framework consumers can observe them.

    1.9.16release notes

  • With multitaskStrategy set to enqueue, same-tick submissions now enter queueStore instead of bypassing the client queue.

    1.9.15release notes

  • SubgraphDiscovery no longer changes a terminal subgraph back to running when a host-namespace values snapshot arrives late, preventing nodes from remaining perpetually running in useStream subgraph UIs.

    1.9.14release notes

  • Normalizes camelCase and snake_case edit decisions so JS clients can resume human-in-the-loop interrupts against Python LangGraph servers.

    1.9.13release notes

  • Headless-tool resumes now route payloads through respond or respondAll, delivering the tool result and allowing the graph to complete.

    1.9.12release notes

  • Checkpoint IDs created within the same millisecond maintain stable lexicographic ordering because uuid6 now uses a strictly increasing time component.

    1.9.11release notes

  • Prefers a completed task's direct mapping over a pending checkpoint's positional guess when fetching subagent history.

    1.9.11release notes

  • Preserves the apiUrl path prefix in stream transport URLs so SSE and WebSocket subscriptions work when the SDK uses a proxied apiUrl.

    1.9.9release notes

  • Embedded ToolMessage results in LangGraph Command payloads are now parsed on tool-finished.

    1.9.7release notes

  • Wrapper task dispatch events are filtered from subagent-scoped tool-call projections.

    1.9.7release notes

  • Optional accessors are non-enumerable, so object spread or rest destructuring does not eagerly read guarded fields or opt into additional stream modes.

    1.9.7release notes

  • Discovery stores are reset when starting a new thread, preventing stale subgraph cards or subagent entries from the previous run.

    1.9.6release notes

  • InferToolCalls now resolves to generic AssembledToolCall unions, aligning typing with pre-v1 expectations.

    1.9.5release notes

  • Message projection now preserves AI content blocks.

    1.9.2release notes

  • Subagent history restoration now respects fetchStateHistory.

    1.8.10release notes

  • Previously streamed messages are preserved when an interrupt-only values payload is emitted.

    1.8.9release notes

  • Subagent messages are buffered instead of dropped.

    1.8.8release notes

  • Fixed detection of interrupts for Python agents.

    1.8.7release notes

  • Subagents are accessible once they are spun up.

    1.8.5release notes

  • Type inference is improved, helping developers get better inferred types when using the SDK.

    1.8.5release notes

  • Restores deprecated snake_case aliases on interrupt payloads while preserving camelCase fields, allowing older apps to migrate to @langchain/react without breaking interrupt handling.

    1.8.4release notes

  • Parallel interrupts are now accumulated in StreamManager.

    1.8.3release notes

  • Skips the post-stream getHistory call when onFinish has zero arity.

    1.8.2release notes

  • Normalizes interrupts between JavaScript and Python.

    1.8.1release notes

  • Custom transports now forward streamSubgraphs.

    1.7.5release notes

  • Fixes fetching subagent history.

    1.7.5release notes

  • Handles null values in functional graph checkpoint history.

    1.7.3release notes

  • Fixes empty results for OpenAI models by updating aiMessageId when the provider replaces it during streaming.

    1.7.3release notes

  • Reverts the dependency between the old SDK and the new React package.

    1.7.2release notes

  • Custom streams now use the optimistic threadId.

    1.7.1release notes

  • Fixes the type incompatibility between UseStream and the useStream return type.

    1.6.4release notes

  • Aborts the previous stream when using the interrupt/rollback multitask strategy.

    1.6.4release notes

  • Made generic to enable type-safe subagent inference.

    1.6.2release notes

  • The SDK now always passes the URL to fetch as a string.

    1.5.5release notes

  • Agent types are now inferred in stream.values.

    1.5.5release notes

  • Fixes a “cannot convert undefined or null to object” error in useStream.

    1.5.4release notes

  • Reconnects based on Location, including before the first event, and retries on Undici connection errors.

    1.5.3release notes

  • Fixes a bug in the UseStream export.

    1.5.2release notes

  • UseStream instance exports were re-added, making them available to developers importing the SDK.

    1.5.1release notes

  • Failing to connect to a server now provides a proper error message.

    1.4.4release notesrelease notesrelease notes

  • The package is updated for compatibility with LangGraph v1.0.

    1.0.0release notes

@langchain/langgraph-sdk 0.116 changes

New APIs and options 16

  • Adds an endpoint to retrieve a model price entry by ID, including workspace, organization, and LangSmith default entries the workspace prices against. Returns 404 for entries the workspace does not price against.

    0.1.0docs

  • Adds a DELETE endpoint for deleting an organization model price by ID, whether or not it exists.

    0.1.0docs

  • Adds a GET endpoint to retrieve an organization model price by ID, returning a ModelPriceMapSchema.

    0.1.0docs

  • Adds an endpoint to create an organization model price that applies to every workspace in the organization.

    0.1.0docs

  • Adds an endpoint to list organization user groups with cursor pagination, workspace-scoped results, and permission-dependent visibility.

    0.1.0docs

  • Resumes listing from a cursor returned by the previous page; the response provides next_cursor, which is null on the last page.

    0.1.0docs

  • Sets the number of user groups per page; accepts values from 1 to 100 and defaults to 20.

    0.1.0docs

  • Adds a GET endpoint that retrieves one user group in an organization. Access requires organization:user-groups:read or workspaces:user-groups:read in the group’s workspace, depending on scope.

    0.1.0docs

  • Adds an endpoint to attach an existing organization access policy to a user group. The request requires access_policy_id and optionally accepts workspace_id; it returns 201 when attached or 200 when already attached.

    0.1.0docs

  • Adds a GET endpoint to list a user group's access policies, with cursor-based pagination and scope-specific read permissions.

    0.1.0docs

  • Adds a POST endpoint to grant an organization-wide user group a role in a workspace. The caller needs organization:user-groups:manage-grants.

    0.1.0docs

  • The upsert query parameter updates an existing session with the same name instead of creating a session.

    0.1.0docs

  • Defines the list endpoint's response as an items array of DeploymentNamespace objects.

    0.1.0docs

  • Adds the optional cursor query parameter for fetching subsequent pages, using the previous response’s next_cursor as an opaque value.

    0.1.0docs

  • Adds the optional page_size query parameter to set the maximum number of entries returned; it defaults to 20 and accepts values from 1 to 100.

    0.1.0docs

  • Adds an API to list workspace rules with pagination and filters for project, dataset, type, name, IDs, evaluator, tags, and backfill progress.

    0.1.0docs