When a run pauses for a person, the resume should pick up where the run stopped, not start over. Re-running the finished steps wastes tokens, repeats reads, and risks repeating writes. LangGraph’s interrupts are built for this: the checkpointer saves the graph state at the pause, and resuming with the same thread id continues from that checkpoint, passing the person’s answer back into the interrupted node. The catch is that the node restarts from its top on resume, so work before the interrupt must be safe to repeat, and writes must sit after the pause, not before it. Test the resume once with a real pause before you trust it.
What you need
- A run that pauses for human input, with a checkpointer configured
- The same thread id for the pause and the resume, so the checkpoint is found
- A test run that pauses, waits, and is resumed with an answer
Step 1: Pause with the state saved, and keep the thread id
When the run pauses, confirm the state is saved in the checkpointer and record the thread id with the approval request. A pause with no saved state cannot resume.
Step 2: Resume with the same thread id and the person’s answer
When the person answers, resume the run with the same thread id, passing the answer back as the resume value. A new thread id starts a brand-new run, not a resume.
Step 3: Confirm the finished steps did not re-run
After the resume, read the run log and confirm the steps before the pause did not run again and no write was repeated. If a write repeated, it was placed before the pause instead of after it.
Worked example: synthetic run resume check
The table below is a synthetic example. It shows the expected result of resuming after input; no run was paused.
| Check | Expected | Result |
|---|---|---|
| Run pauses with state saved | Yes | Pass |
| Resume uses the same thread id | Yes | Pass |
| Finished steps do not re-run | 0 re-runs | Pass |
| No write is repeated | Yes | Pass |
Expected result (UNTESTED). the run pauses with its state saved, resumes on the same thread id, and no finished step or write repeats. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- The paused node re-runs from its top on resume, so work before the interrupt must be safe to repeat.
- An in-memory checkpointer loses the pause on restart; use a durable one in production.
- A resume with a different thread id starts a new run, which can double the work.
- A long pause can make the saved state stale, so re-read key facts after resuming.
