LangGraph saves the graph state after every step under a thread id, and that id is effectively your persistent cursor: reuse it and you resume the same checkpoint, use a new one and you start a brand-new thread with empty state. That one habit gives you crash recovery and human-in-the-loop pauses from the same mechanism. To resume, invoke the graph again with the same thread id and, where the run paused, the resume value for the interrupt.
What you need
- Python with langgraph installed and a graph compiled with a checkpointer
- The thread id of the run to resume
- The resume value, if the run paused at an interrupt
Step 1: Find the thread id of the paused run
Note the thread id the run used. Without it there is nothing to resume: a new id starts a new run, it does not continue the old one.
Step 2: Invoke the graph again with the same thread id
Invoke the compiled graph with the same thread id and, if the run paused at an interrupt, the resume value passed back as a Command. The graph continues from the saved state.
Step 3: Confirm the run continued, not restarted
Check the run history and confirm the new steps follow the old ones instead of repeating them. If the first steps run again, the thread id was different.
Worked example: synthetic resume test
The table below is a synthetic example. It shows the expected result of a resume; no graph was run.
| Check | Expected | Result |
|---|---|---|
| Same thread id used | Yes | Pass |
| Old steps not repeated | 0 repeats | Pass |
| Run finishes from checkpoint | Yes | Pass |
Expected result (UNTESTED). the run continues from its checkpoint with no repeated steps and finishes cleanly. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- The thread id is the cursor: reuse it to resume, and a new id starts a fresh run with empty state.
- A resume needs a checkpointer configured on the compiled graph, or there is no saved state to continue from.
- Check the run history after a resume, because a wrong thread id silently starts over instead of failing.
