Packages

@langchain/langgraph-api

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

Your version

1.7.0

6 Nov 2026Where it was published

1.8.1 is the newest release of 1.x.

In short

4 breaking2 new2 fixed1 internal

  • Breaking

    feat(langgraph-api): refuse a stale interrupt answer only when the run asks for it with strict_resume

  • Breaking

    fix(langgraph-api): the protocol's failed lifecycle event carries the run error's message instead of the whole error as JSON, and a refused strict resume's reason, interrupt_ids and pending_ids

    To check
  • Breaking

    GET /threads/:thread_id/runs/:run_id/join and GET /threads/:thread_id/runs/:run_id/stream now return HTTP 404 when the run doesn't exist, is on another thread, or is hidden by the threads:read handler, as GET /threads/:thread_id/runs/:run_id does. client.runs.join() and client.runs.joinStream() then throw HTTP 404 instead of returning { __error__ } or yielding an error event, with or without lastEventId.

  • Breaking

    chore: depend on @langchain/protocol 0.0.21, which types input.answered, and map input.answered to the input channel in inferChannel. input subscribers now get input.answered as well as input.requested, so code that reads data.interrupt_id should check event.method first.

Release note

Minor Changes

  • langgraph-api: A run that answers interrupts by id tells the thread's other protocol clients which ones, with an input.answered event on the input channel; run streams don't carry it

  • langgraph-api: Refuse a stale interrupt answer only when the run asks for it with strict_resume

    Strict resume, which 1.6.0 turned on for every run, is now opt-in. A run created with strict_resume: true (the same field on the protocol's run.start and input.respond) runs the graph 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. The error event carries reason, interrupt_ids and pending_ids. A retried run, and an interrupt or rollback run that cancelled one in flight, resume as before. Runs that don't set it resume as they did before 1.6.0: one value answers every pending interrupt, and an answer sent twice is a no-op.

Patch Changes

  • langgraph-api: The protocol's failed lifecycle event carries the run error's message instead of the whole error as JSON, and a refused strict resume's reason, interrupt_ids and pending_ids

  • After a run that forks from a checkpoint, later runs on the thread continue from its latest state again. The dev server saved the fork's checkpoint_id (and checkpoint_ns, checkpoint_map and run_id) on the thread config, so every later run on the thread forked from the same checkpoint and dropped the new branch.

  • GET /threads/:thread_id/runs/:run_id/join and GET /threads/:thread_id/runs/:run_id/stream now return HTTP 404 when the run doesn't exist, is on another thread, or is hidden by the threads:read handler, as GET /threads/:thread_id/runs/:run_id does. client.runs.join() and client.runs.joinStream() then throw HTTP 404 instead of returning { __error__ } or yielding an error event, with or without lastEventId.

  • Run streams on the dev server take the lifecycle stream mode: an event named lifecycle|<namespace> when each subgraph starts and when it ends (completed, failed or interrupted), with the id of the tool call that started it. /info reports stream_lifecycle.

  • langgraph-api: The protocol's run.start reads the multitask strategy from multitask_strategy, falling back to multitaskStrategy, on the dev server and the embed server.

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.