@langchain/langgraph-api
1.8.1 · 20 Nov 2026MIT193.1k / weekRepositoryHomepagenpmAtom feed
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 - BreakingTo check
fix(langgraph-api): the protocol's
failedlifecycle event carries the run error's message instead of the whole error as JSON, and a refused strict resume'sreason,interrupt_idsandpending_ids - Breaking
GET /threads/:thread_id/runs/:run_id/joinandGET /threads/:thread_id/runs/:run_id/streamnow return HTTP 404 when the run doesn't exist, is on another thread, or is hidden by thethreads:readhandler, asGET /threads/:thread_id/runs/:run_iddoes.client.runs.join()andclient.runs.joinStream()then throwHTTP 404instead of returning{ __error__ }or yielding an error event, with or withoutlastEventId. - Breaking
chore: depend on @langchain/protocol 0.0.21, which types
input.answered, and mapinput.answeredto theinputchannel ininferChannel.inputsubscribers now getinput.answeredas well asinput.requested, so code that readsdata.interrupt_idshould checkevent.methodfirst.
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.answeredevent on theinputchannel; run streams don't carry itlanggraph-api: Refuse a stale interrupt answer only when the run asks for it with
strict_resumeStrict 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'srun.startandinput.respond) runs the graph in strict resume mode: aCommand({ 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 withUnknownInterruptError, and the thread keeps its status, values and interrupts. The error event carriesreason,interrupt_idsandpending_ids. A retried run, and aninterruptorrollbackrun 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
failedlifecycle event carries the run error's message instead of the whole error as JSON, and a refused strict resume'sreason,interrupt_idsandpending_idsAfter 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(andcheckpoint_ns,checkpoint_mapandrun_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/joinandGET /threads/:thread_id/runs/:run_id/streamnow return HTTP 404 when the run doesn't exist, is on another thread, or is hidden by thethreads:readhandler, asGET /threads/:thread_id/runs/:run_iddoes.client.runs.join()andclient.runs.joinStream()then throwHTTP 404instead of returning{ __error__ }or yielding an error event, with or withoutlastEventId.Run streams on the dev server take the
lifecyclestream mode: an event namedlifecycle|<namespace>when each subgraph starts and when it ends (completed,failedorinterrupted), with the id of the tool call that started it./inforeportsstream_lifecycle.langgraph-api: The protocol's
run.startreads the multitask strategy frommultitask_strategy, falling back tomultitaskStrategy, 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.