Packages

@langchain/langgraph-api

1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed

Your version

1.6.0

5 Nov 2026Where it was published

1.8.1 is the newest release of 1.x.

In short

1 breaking1 new4 fixed2 internal

  • Breaking

    fix(langgraph-api): refuse a stale interrupt answer on the dev server

Release note

Minor Changes

  • langgraph-api: Refuse a stale interrupt answer on the dev server

    The dev server now runs graphs in strict resume mode: a Command({ resume }) that names an interrupt that isn't pending, is an empty map, or is one value while several interrupts are pending ends the run with UnknownInterruptError, and the thread keeps its status, values and interrupts. A retried run, and an interrupt or rollback run that cancelled one in flight, resume as before.

    Two things that used to succeed now fail: one value sent while several interrupts are pending, which answered all of them, and an answer sent twice, such as a double-click, whose second run was a silent no-op. Both now end the run with an error.

Patch Changes

  • Joining a run that doesn't exist, or that ended long enough ago that its events were dropped, now ends at once instead of after half a second, and no longer leaves an empty event log in memory. A run cancelled before it started now drops its event log two minutes later, as a run that ended does.

  • GET /threads/:thread_id/runs/:run_id/stream now ends with a Run not found error unless the run exists and is on that thread, where it used to stream a run on any thread. A join that arrives after its run was deleted (by DELETE /threads/:thread_id/runs/:run_id or a rollback) gets that error too, as GET /threads/:thread_id/runs/:run_id does, instead of the deleted run's events. When the threads:read handler returns filters, GET /runs/:run_id/stream streams only a run that exists and whose thread matches them, and ends with no events otherwise, so a stateless run can be joined that way only until it ends.

  • The dev server no longer splits a run's events between the clients reading it. A run created without stream_resumable kept its events in a queue that each read emptied, so two clients joining the run each got only part of them, and runs.join() took events away from a stream still open on the run. Every run now keeps its events, as resumable runs already did, and each reader reads them from its own position: the request that creates a streamed run, runs.wait() and runs.join() read the run from the start, a join with Last-Event-ID resumes after that event, and a join without one gets the events published after it joins. Before, such a join got whatever events no other reader had taken yet. To read a run from the start, pass lastEventId: "-1" to client.runs.joinStream(). A finished run's events now stay in memory for two minutes, long enough to rejoin it with Last-Event-ID, and are dropped as soon as the run or its thread is deleted. Resumable runs used to keep their events until the server restarted.

  • Run streams on the dev server and the experimental embed server now end with an end event whose data carries the run's run_id and final status, so a client learns how the run ended without asking for the run again. stream_mode filters never drop it, and on the dev server a join of a run that has already ended gets just the end event. A rolled-back stateless run ends with rollback. A thread run that is deleted, as a rollback does, ends its streams without one.

  • Thread protocol commands (POST /threads/:thread_id/commands and the /threads/:thread_id/stream/events WebSocket) now run with the auth of the request or WebSocket connection that sent them, instead of the auth of the first request that touched the thread. A run started over HTTP after a token refresh, or over a WebSocket opened after it, now gets the new token in config.configurable.langgraph_auth_user, and run creation, state reads and interrupt answers are authorized as the request that sent them.

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.