Agent FixboardAgentFixboard

get_state() is wrong after a node calls interrupt() more than once

No exception is raised. After a resume, the node is paused on its second interrupt() and get_state().next is () instead of ('ask_twice',).

From GitHub

langchain-ai/langgraph

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
1.2.13
Last checked

Verified fix: PR #9103 merged on . Fixed in 1.2.13 (first published release whose tag contains the merge commit). Last checked .

Symptom

No exception is raised. After a resume, the node is paused on its second interrupt() and get_state().next is () instead of ('ask_twice',).

Evidence what you'll see

  • The report's line is snap.next returns () instead of ('ask_twice',). The graph is still waiting.
  • A comment on 26 Mar 2026 still sees it on langgraph 1.1.3 and langgraph-sdk 0.3.12.

Why it happens

Snapshot preparation replays RESUME pending writes into task.writes, then treats the node as finished and leaves it out of next. Pull request 9103 says execution, snapshots, and resume checks were reading those writes separately, so an answered interrupt was still reported.

Affected versions

Windows 10.0.26100, Python 3.12.12, langchain-core 1.2.14, langgraph-cli 0.4.13, langgraph-sdk 0.3.8, and the 26 Mar 2026 comment's langgraph 1.1.3. The linked issue does not name a langgraph package version in its system info. The repro uses InMemorySaver.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • While the node is paused on the second interrupt(), get_state().next is ('ask_twice',) rather than ().

If it still fails

  • Pull request 9103 says a thread paused before the change, whose resumed task finished without output, still looks unfinished. Resume that thread by interrupt id. Command(resume=value) without an id raises when more than one interrupt is pending. On SQLite and Postgres, an old RESUME value can remain for a finished task; that task does not run again.

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