Symptom
Resuming the second of two parallel interrupts in a subgraph throws AssertionError: a completed node ran again: {'a': 2, 'b': 1}. The first node's side effect runs again. The final state can still look right.
Evidence what you'll see
- The report resumes each interrupt by id. The first node's saved
RESUMEwrite answersinterrupt()immediately, so the side effect repeats without asking again. - The same shape showed up when two tools in one step each called
interrupt()before an external write. Approving the second call repeated the first write.
Why it happens
Every task config sets checkpoint_id to None. PregelLoop treated a config that contains that key as a replay, so a nested graph replayed on every resume and did not hand saved writes back to the tasks that made them. Finished tasks therefore ran again. Line numbers in the report are from main at 07b33185.
Affected versions
langgraph 1.2.10, also reproduced on 1.2.12, langgraph-checkpoint 4.1.1, langchain 1.3.14, langchain-core 1.5.3, Python 3.12.13, Darwin 24.6.0 arm64. The report also lists deepagents 0.6.12.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- Answering the two interrupts one at a time runs each node's side effect once. The assertion
a completed node ran againis not raised.
If it still fails
- Pull request 9315 says a resume at an older checkpoint still reruns finished tasks. A resume sent with the head
checkpoint_id, or withcheckpoint_idset toNone, was the bug this pull request changes.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it