agent_signal

Guide

LangGraph strict resume: a bare Command(resume) on a never-started or finished thread is accepted, not refused

By Agent Signal · Published 2026-11-28 · Updated 2026-11-28

Short answer

With strict resume on (__pregel_strict_resume), LangGraph accepts a bare Command(resume=value) on a thread that never started, where the graph starts from START and drops the answer, or on a thread that already finished, where it returns the old answer. The same resume sent as an id map is refused with UnknownInterruptError. Check that get_state(config).next is non-empty before you resume (30 of 30 runs), or resume by interrupt id. This is issue #9706: it is unfixed in langgraph 1.2.24 as of Nov 28, 2026, and the only proposed fix PR, #9709, was closed unmerged.

You turned on strict resume so that a resume for an interrupt that is not waiting fails loudly. Then a webhook sends Command(resume="rejected") with a thread id that has a typo. There is no error. The graph starts from START, pauses at the same question as if new, and the answer is gone. Send the same bare resume to a thread that already finished, and you get the first answer back, again with no error. This guide shows why, reproduces it, and gives two app-side guards that passed 30 of 30 runs without patching langgraph.

Everything below ran on langgraph 1.2.24 (the latest on PyPI, Nov 20 (UTC), 2026) and langgraph 1.2.22 (the version the reporter used), langgraph-checkpoint 4.3.2, Python 3.13.5, Linux, Nov 28, 2026. No model and no API key. Most rows used InMemorySaver; some rows were also run with SqliteSaver (langgraph-checkpoint-sqlite 3.1.3, a file database in the same process). Each run used a fresh graph, checkpointer and thread id. Each row is 30 runs, in one pass. The reporter used Python 3.12.3.

Strict resume came in langgraph 1.2.20 (PR #9574, merged Nov 4, 2026). You switch it on with the config key __pregel_strict_resume, or with the SDK's strict_resume argument on servers that report it. Without strict mode the behaviour is the same: see the "strict off" row below.

Who this hits

You are affected if all of these are true:

  1. You have an approval step where each step runs in a new process, for example a webhook or a cron job.
  2. The thread id comes from outside, so it can be wrong or stale.
  3. Strict resume is on.
  4. The client sends the answer as a bare value: Command(resume=value), not Command(resume={interrupt_id: value}).

The issue

This is langchain-ai/langgraph#9706, "Strict resume accepts a bare resume on a thread that was never started or has already finished". It was opened Nov 14, 2026 and was still open on Nov 28, 2026, with the label external. It has 3 comments; all three ask to be assigned, and there is no maintainer reply. It was last updated Nov 16, 2026.

The issue states the cause in one line: "A bare Command(resume=value) is still accepted when nothing is pending, because it may be resuming a static breakpoint (#9574)." It also names a workaround: "Checking get_state(config).interrupts before resuming works around it." That workaround has a cost, covered below.

One fix PR was opened: #9709, "fix(langgraph): refuse bare resume with no pending interrupt or breakpoint in strict mode". It was closed unmerged on Nov 14, 2026 by the github-actions bot (require-issue-link check). There is no merged fix.

Related: #9574 added strict resume and is merged. #9570 is open; it binds a bare resume when exactly one interrupt is pending. That is a different change. In this bug no interrupt is pending, so it does not fix it.

Why it happens

Here is the strict-resume check in langgraph 1.2.24, langgraph/pregel/_loop.py, in PregelLoop._first:

                strict = (
                    self.config[CONF].get(CONFIG_KEY_STRICT_RESUME, False)
                    # Nested calls inherit the parent's configurable.
                    and not self.is_nested
                    # A finished task can rerun and interrupt again on replay, while
                    # its earlier output still makes its interrupt look answered.
                    and not self._addressed_checkpoint_superseded
                )
                if resume_is_map := (
                    isinstance(resume, dict)
                    and all(is_xxh3_128_hexdigest(k) for k in resume)
                ):
                    if strict:
                        pending = self._pending_interrupts()
                        if not resume:
                            raise UnknownInterruptError(
                                "The resume map names no interrupt",
                                reason="empty_map",
                                pending_ids=sorted(pending),
                            )
                        if unknown := sorted(resume.keys() - pending):
                            raise UnknownInterruptError(
                                f"Unknown or already-consumed interrupt: {unknown[0]}",
                                reason="not_pending",
                                interrupt_ids=unknown,
                                pending_ids=sorted(pending),
                            )
                    self.config[CONF][CONFIG_KEY_RESUME_MAP] = resume
                else:
                    if len(pending := self._pending_interrupts()) > 1:
                        message = (
                            "When there are multiple pending interrupts, you must specify the interrupt id when resuming. "
                            "Docs: https://docs.langchain.com/oss/python/langgraph/interrupts#handling-multiple-interrupts."
                        )
                        if strict:
                            raise UnknownInterruptError(
                                message, reason="ambiguous", pending_ids=sorted(pending)
                            )
                        raise RuntimeError(message)

There are two branches:

So nothing refuses a bare value when zero interrupts are pending. On a thread id with no checkpoint, the graph runs from START and pauses at the interrupt again; the answer is never used. On a finished thread there are no next tasks, so nothing runs and the saved state comes back.

Reproduce it

We ran the issue's own script unmodified (issue_script_verbatim.py, the code block copied from the issue). In short, with cfg(thread_id) setting __pregel_strict_resume: True:

# 1. A thread id that was never started
graph.invoke(Command(resume="rejected"), cfg("never-started"))

# 2. A finished thread, answered again
graph.invoke({}, cfg("finished"))
graph.invoke(Command(resume="approved"), cfg("finished"))
graph.invoke(Command(resume="rejected"), cfg("finished"))

# 3. For comparison: the same resume on a finished thread as an id map
pending = graph.invoke({}, cfg("map"))["__interrupt__"][0].id
graph.invoke(Command(resume={pending: "approved"}), cfg("map"))
graph.invoke(Command(resume={pending: "rejected"}), cfg("map"))

Output on langgraph 1.2.24, as is:

1. never started: {'__interrupt__': [Interrupt(value='approve?', id='051445db9bb77cc193338a8ed08da41e', response_schema=None)]}
   state next: ('approval',)
2. before second answer: next = () interrupts = ()
2. finished, answered 'rejected': {'verdict': 'approved'}
3. finished, id map: UnknownInterruptError not_pending

On 1.2.22 the output was the same apart from the random interrupt id. Both match the output in the issue. Case 1 and case 2 raise no error. Only case 3, the id map, is refused.

Results

30 runs per row, one pass, Nov 28, 2026. Each cell is the number of runs, out of 30, with the outcome you want. For the bug rows that means UnknownInterruptError and no change to the thread. For the controls and guards it means legitimate resumes go through and bad ones are refused. "+ #9709" is a copy of that version with PR #9709's library change applied (see below).

Sync and async gave identical results in every row. Where a row was also run with SqliteSaver, it matched InMemorySaver. The Paths column lists what was run.

Scenario (strict on unless noted) Paths 1.2.22 1.2.24 1.2.22 + #9709 1.2.24 + #9709
Never-started thread, bare resume sync, async, SQLite 0/30 0/30 30/30 30/30
Finished thread, bare resume with a different answer sync, async, SQLite 0/30 0/30 30/30 30/30
Control: never-started thread, id map sync, async 30/30 30/30 30/30 30/30
Control: finished thread, id map with the old id sync, async, SQLite 30/30 30/30 30/30 30/30
Control: pending interrupt, bare resume sync, async, SQLite 30/30 30/30 30/30 30/30
Control: static breakpoint (interrupt_before), bare resume sync, async 30/30 30/30 30/30 30/30
interrupt_after on the last node, bare resume (30/30 = refused) sync, async 0/30 0/30 30/30 30/30
Strict off: finished thread, bare resume (30/30 = refused; 0/30 = old answer returned, no error) sync, async 0/30 0/30 0/30 0/30
Typo'd id is another real, waiting thread: id map carrying thread A's id (30/30 = refused, thread B still pending) sync, async 30/30 30/30 30/30 30/30
Typo'd id is another real, waiting thread: bare resume (30/30 = refused; 0/30 = accepted and used by the wrong thread) sync, async 0/30 0/30 0/30 0/30
Guard .next: never-started, finished, pending sync, async, SQLite 30/30 30/30 30/30 30/30
Guard .next: static breakpoint sync, async 30/30 30/30 30/30 30/30
Guard by interrupt id: pending, never-started sync, async 30/30 30/30 30/30 30/30
Guard by interrupt id: stale id on finished thread sync, async, SQLite 30/30 30/30 30/30 30/30
Guard .interrupts: never-started, finished, pending sync, async 30/30 30/30 30/30 30/30
Guard .interrupts: static breakpoint (30/30 = legitimate resume goes through; 0/30 = guard wrongly refuses it) sync, async 0/30 0/30 0/30 0/30
Trap guard "thread exists": never-started sync, async 30/30 30/30 30/30 30/30
Trap guard "thread exists": finished (30/30 = guard refuses; 0/30 = guard lets it through; the "+ #9709" cells count the guard only, the patched library then refuses) sync, async 0/30 0/30 0/30 0/30

What the failing rows did, as is:

A wrong thread id that points at another real, waiting thread is not caught. The wrong-thread bare row is 0/30 even with the #9709 patch. That thread really is waiting, so the library has no way to know the answer was meant for a different one; the answer was accepted and used. Only interrupt ids protect against this: the id map carrying thread A's id was refused on thread B in 30 of 30 runs, and B stayed pending.

The fix: guard the resume in your app (no library change)

1. Refuse unless get_state(config).next is non-empty

Before a bare resume, read the thread state. If nothing is scheduled to run, there is nothing to resume.

from langgraph.types import Command

def resume_if_waiting(graph, config, answer):
    state = graph.get_state(config)
    if not state.next:
        raise ValueError("Nothing is waiting on this thread")
    return graph.invoke(Command(resume=answer), config)

A never-started thread has an empty next, and so does a finished one. A thread paused at interrupt() or at an interrupt_before breakpoint has a non-empty next. This guard passed 30 of 30 for never-started, finished, pending and static-breakpoint threads, on 1.2.22 and 1.2.24, sync and async. On a never-started thread it wrote no checkpoint. For the async API, use await graph.aget_state(config) and await graph.ainvoke(...).

2. Resume by interrupt id

Keep the interrupt id from the paused thread, store it with your approval request, and send it back with the answer:

state = graph.get_state(config)          # while the thread is paused
interrupt_id = state.interrupts[0].id    # store this with the approval request
...
graph.invoke(Command(resume={interrupt_id: answer}), config)

In our tests the id was read from get_state(config).interrupts while the thread was paused, and the finished-thread case reused that id captured earlier. The issue's script takes it from the paused result instead: result["__interrupt__"][0].id.

With an id map, strict resume does the checking for you. A stale id on a finished thread was refused with not_pending in 30 of 30 runs, and an id from another thread was refused in 30 of 30, with that other thread left pending. A never-started thread has no interrupt id, so there is nothing to send and no checkpoint is written (30 of 30). A pending resume by id worked 30 of 30.

This is the only option that also covers a wrong thread id that points at another waiting thread. Static breakpoints have no interrupt id, so for interrupt_before and interrupt_after use guard 1.

Stuck on a LangGraph approval or resume flow? Send a minimal repro; you pay $79 only when our patch passes it.

3. Trap: checking only get_state(config).interrupts

This is the workaround the issue suggests. It passed 30 of 30 for never-started, finished and pending threads. But a graph paused by interrupt_before has no interrupts, so this check refuses a legitimate static-breakpoint resume: 0 of 30 passed. If you use static breakpoints, check .next instead.

4. Trap: checking that the thread exists

Checking that the thread has any checkpoint (get_state(config).created_at is not None) catches the typo'd thread in 30 of 30 runs. But a finished thread exists too, so the guard lets it through: 0 of 30, and the old answer comes back.

All of these guards are check-then-act: they read the state, then resume. We did not test them under concurrent resumes on the same thread.

Option: apply PR #9709

PR #9709 is closed unmerged. We applied its errors.py and _loop.py hunks to copies of site-packages with patch. They applied cleanly to both 1.2.22 and 1.2.24.

The change adds one check to the bare-value branch: in strict mode, with no pending interrupt and no goto, refuse the resume if the thread has no channel versions or no next tasks:

                    if (
                        strict
                        and not pending
                        and not cast(Command, self.input).goto
                        and (
                            not self.checkpoint["channel_versions"]
                            or not prepare_next_tasks(
                                ...
                                for_execution=False,
                            )
                        )
                    ):
                        raise UnknownInterruptError(
                            "No interrupt or breakpoint is pending",
                            reason="not_pending",
                        )

Results on both patched copies:

Cautions:

What we didn't test

FAQ

Why does LangGraph strict resume not raise UnknownInterruptError for Command(resume=value) on a thread that never started?

Because strict mode only checks a bare value for more than one pending interrupt. An id-map resume is checked against the pending interrupts, but a bare value with zero pending is allowed, since it may be resuming a static breakpoint. On a thread id with no checkpoint, the graph starts from START, pauses at the interrupt again and drops the answer. That happened in 30 of 30 runs on langgraph 1.2.22 and 1.2.24, sync, async and with SqliteSaver. This is issue #9706.

Why does resuming a finished LangGraph thread return the old answer?

A finished thread has no next tasks, so a bare Command(resume=value) runs nothing and returns the saved state. In our tests, resuming a finished thread with 'rejected' returned {'verdict': 'approved'} in 30 of 30 runs on 1.2.22 and 1.2.24, with no new checkpoint and no error. The same resume sent as an id map with the old interrupt id raised UnknownInterruptError with reason not_pending in 30 of 30.

Is the strict resume bug fixed in the latest langgraph release?

No. Issue #9706 was open on Nov 28, 2026. langgraph 1.2.24, the latest on PyPI (Nov 20 (UTC), 2026), still accepts both bare resumes: 0 of 30 runs were refused. The only proposed fix, PR #9709, was closed unmerged on Nov 14, 2026 by the github-actions bot (require-issue-link check).

How do I stop a wrong thread id from dropping the answer without patching langgraph?

Read get_state(config) first and refuse unless state.next is non-empty, then send the bare resume. That passed 30 of 30 for never-started, finished, pending and static-breakpoint threads on 1.2.22 and 1.2.24, sync and async. Or resume by interrupt id: keep interrupt.id from the paused thread and send Command(resume={id: answer}). LangGraph then refuses a stale id and an id from another thread (30 of 30). Only an id protects against a wrong thread id that points at another thread that is really waiting.

Is checking get_state(config).interrupts before resuming enough?

Only if you never use static breakpoints. It is the workaround the issue suggests, and it passed 30 of 30 for never-started, finished and pending threads. But a graph paused by interrupt_before has no interrupts, so the check refused a legitimate resume in 30 of 30 runs (0 of 30 passed). Check get_state(config).next instead.

Does the PR #9709 patch fix it?

Mostly, but it is closed unmerged. Applied to copies of 1.2.22 and 1.2.24, it refused bare resumes on never-started and finished threads with UnknownInterruptError reason not_pending in 30 of 30 runs, and pending and static-breakpoint resumes still worked 30 of 30. It also refuses a bare resume after interrupt_after on the last node, a behaviour change. It does nothing with strict off, and it does not catch a bare answer sent to another thread that is really waiting (0 of 30).

Related

You can browse the templates index. The Human-in-the-loop approval graph is a tested LangGraph approval starter. It does not itself guard a bare resume: the guard above is not in the template, so add it yourself.

Stuck on a LangGraph approval or resume flow? Send a minimal repro; you pay $79 only when our patch passes it.

Free starter pack

The approval-flow starter pack

Tested human-in-the-loop approval starters for LangGraph, OpenAI Agents SDK, Vercel AI SDK and Google ADK, plus the Agent Signal newsletter. Free.

Get the Agent Signal newsletter