Measured on langgraph 1.2.19 and 1.2.20: a retried answer can answer the next question. Strict resume refuses it; the new interrupt ids alone do not.
An answer that arrives twice
Tanishka runs the returns workflow for Belgavi's Book Store on LangGraph. One node, review, pauses twice for a person: first to ask whether to approve the refund for a case, then whether to send an apology email. The web client shows each question, posts the answer back as Command(resume=...), and keys the answer by the interrupt id it was shown. Then a phone on a train loses the reply to the first answer, and the client retries it.
What should happen is obvious: the retry is a duplicate of an answer the graph already has, so it should be refused or ignored. What happened on LangGraph 1.2.19 is that the retried "yes" for the refund question was taken as the answer to the email question, and the node completed with both answers set to "yes". Nobody was asked about the email.
LangGraph 1.2.20, released on 5 November 2026, adds two changes aimed at this class of problem: an opt-in strict resume mode (pull request 9574, merged 4 November) and a separate id for each interrupt() call in a task (pull request 9589, merged the same day). This guide reproduces the behaviour on both versions, explains which of the two changes fixes what, and shows what a client still has to do. Every result below was measured locally on Windows 11 with CPython 3.13.5, langgraph==1.2.19 and langgraph==1.2.20 in separate virtual environments, and the in-memory checkpointer. The companion example and the interactive lab contain the same scenarios.
How resume addresses an interrupt
A node calls interrupt(value). The graph saves a checkpoint and returns the pending interrupts, each with an id. The client resumes by invoking the graph again with Command(resume=...) on the same thread. The resume value can be a single value, which answers the one pending interrupt, or a map from interrupt id to value, which is required when several interrupts are pending at once, for example from parallel nodes.
The id is the part that matters here. Before 1.2.20, the id was a hash of the task's namespace. A node that calls interrupt() twice raises two interrupts with the same id, one after the other. Pull request 9589 states it directly: "Every interrupt() call in one task got the same id, a hash of the task's namespace."
The second fact is what a resume map does with an id that is not pending. Pull request 9574 describes the old behaviour: a resume "that names an interrupt id that is no longer pending is silently ignored. The interrupted tasks run again up to interrupt(), and the graph pauses on the same interrupts, with no error."
Put the two together and the retry case follows. On 1.2.19 the refund question and the email question share one id, so a retried answer keyed by the first id names an interrupt that is pending: the email question. It is applied there.
Measured on 1.2.19 and 1.2.20
The probe builds the two-question node, answers the first question with the id the client was shown, then sends the same resume again. It also tries an empty map, a single bare value while two parallel nodes are waiting, and an id that was never issued.
| Scenario | 1.2.19 | 1.2.20, default | 1.2.20, strict |
|---|---|---|---|
| Ids of the two questions in one node | equal | different | different |
| Retry of the first answer while the second question waits | applied to the second question | applied to the second question | refused: not_pending |
Resume with an empty map {} | ignored, pauses again | ignored, pauses again | refused: empty_map |
| One bare value, two interrupts pending | RuntimeError | RuntimeError | refused: ambiguous |
| An id that was never issued | ignored, pauses again | ignored, pauses again | refused: not_pending |
Two results are worth reading twice.
First, the new per-answer ids alone do not stop the retry from landing on the second question. On 1.2.20 without strict mode the two questions have different ids, yet the retried first answer still completed the node with email=yes. Pull request 9589 explains why: "When a resume map has no entry for the task's next interrupt, the first id still answers it, so ids saved by older versions keep working." That fallback keeps old clients working, and it also keeps the misapplied retry working. Only strict mode refuses it.
Second, the strict key does nothing on 1.2.19. The probe passed it on both versions; 1.2.19 behaved exactly as without it. If a deployment has a mixed fleet during an upgrade, workers still on 1.2.19 keep the old behaviour no matter what the client sends.
Turning strict mode on
Strict mode is enabled by a configurable key, __pregel_strict_resume. The double underscore marks it as private: the pull request names it CONFIG_KEY_STRICT_RESUME, and it is not part of the documented public configuration. Expect it to be renamed or promoted later, and wrap it in one place in your code.
from langgraph.errors import UnknownInterruptError
from langgraph.types import Command
STRICT_RESUME = {"__pregel_strict_resume": True} # private key in langgraph 1.2.20
def answer(graph, thread_id: str, interrupt_id: str, value):
config = {"configurable": {"thread_id": thread_id, **STRICT_RESUME}}
try:
return graph.invoke(Command(resume={interrupt_id: value}), config)
except UnknownInterruptError as err:
# Nothing was written. Show the person what is pending now.
return {"refused": err.reason, "pending": [i.id for t in graph.get_state(config).tasks for i in t.interrupts]}When strict mode refuses a resume, the error carries a reason of not_pending, empty_map or ambiguous, plus interrupt_ids and pending_ids. The pull request says the check runs "before writing anything", and the probe confirms the observable part: after the refused retry, the email question was still pending and unanswered.
The import path in the snippet is the one the measurement used; check it against the version you pin, since the error class is new in 1.2.20 and does not exist in 1.2.19. One small inconsistency is worth knowing: the class docstring in 1.2.20 still says "The interrupts one task raises share an id", which was true when pull request 9574 was written and stopped being true when 9589 merged on the same day. Trust the measured ids, not that sentence.
What strict mode deliberately does not check
The pull request lists the cases it leaves alone, and they matter for deciding whether you can rely on it.
- One bare value with no interrupt pending is still accepted, because that is how a graph paused at a static breakpoint (
interrupt_beforeorinterrupt_after) is resumed. - The check is skipped for nested graphs and when resuming at a checkpoint the thread has already moved past, "because there a finished task can rerun and interrupt again".
RemoteGraphdoes not forward the key, "so the remote side decides for its own runs". A client talking to a deployed graph throughRemoteGraphgets whatever the server is configured to do.- Without the key, nothing changes.
So strict mode is a guard for the common case of a client answering pending interrupts on the current checkpoint of a local graph. It is not an idempotency mechanism for every way a run can be resumed.
The id change and stored ids
Pull request 9589 changes what an id means: an interrupt's id now also hashes "how many answers its task already has". A node that asks once keeps its old id, the bare namespace hash. A node that asks a second question gets a new id for that question.
The pull request is explicit about the compatibility cost: "This changes the id of an interrupt raised after its task already got an answer. Clients that take ids from the state or the stream aren't affected." Clients that computed or cached ids some other way, or stored them in a database between a question and its answer across an upgrade, should be checked. The fallback described above keeps a saved first id answering the next question, which is why old stored ids still work, and also why the retry problem persists without strict mode.
A related fix in the same pull request concerns retry policies. A node rerun by a retry policy used to keep counting its interrupt() calls from the failed attempt and ask again a question it already had an answer to; a retry now counts from the first call again and reuses its answers.
What the client should still do
Strict mode tells a client that its answer did not land. It does not decide what to do next. A resume flow that stays correct across retries has three parts, and only the second is LangGraph's job.
- Key every answer by the interrupt id the person actually saw, never by position ("the first pending question"). Store the id with the rendered question.
- Resume with a map, on 1.2.20 or later, with strict mode on. Treat
not_pendingas "this question is already answered or gone", not as an error to retry. - After a refusal, fetch the pending interrupts and show them. If the pending question differs from the one the person answered, ask again; never forward the old value to the new question.
A client retry that is a true duplicate then becomes harmless: the first attempt applied the answer, the retry is refused, and the person sees the next question.
Testing it in your own graph
Add three tests that run in milliseconds with the in-memory checkpointer:
- answer the first question of a two-question node, then send the same resume again, and assert either a refusal or that the second question is still pending with no value;
- send
Command(resume={})and assert a refusal; - with two parallel interrupts pending, send one bare value and assert a refusal with reason
ambiguous.
Run them against the version you deploy, and once more during an upgrade with the old version, so the suite shows which behaviour a mixed fleet produces. The companion example contains these tests for 1.2.19 and 1.2.20 and records the output of both.
Limits of this measurement
The probe used the in-memory saver and a two-question node; the pull request reports 44 strict-resume cases across the in-memory and SQLite savers, which we did not rerun. Subgraphs, the functional API, RemoteGraph and the JavaScript port were not measured. The behaviour described is that of 1.2.19 and 1.2.20 only. The book store, its cases and the client are synthetic.
Interactive experiment
Interrupt resume: stale answers in lenient and strict modes. Synthetic browser-local fixtures, adjustable inputs, decision traces and JSON export.