New Tool Radar

AI Agents & Automation

How to Resume a LangGraph Graph After a Human Approves an Interrupted Step

Resume a paused LangGraph graph by invoking it with no new input and the same thread ID so it continues from the saved checkpoint.

Schematic diagram with three steps: Read the paused state, Record the approval, then Invoke with no input.

A paused graph waits in its checkpoint, and resuming it means picking up exactly where it stopped. The LangGraph documentation states that invoking the graph with None as input loads the latest checkpoint and retries the unfinished work, using the thread_id to find the saved state.

Before you start

You need a LangGraph graph that is paused at an interrupt, compiled with a checkpointer, and the thread_id of the paused run. Do not start a new thread: a new thread_id starts fresh work instead of resuming.

Read the paused state and record the decision

Call get_state with the thread config and read what the graph is waiting on. Record the human decision, approved or rejected, and if the decision changes the state, use update_state to write it before resuming. A rejection needs a route away from the risky node, not just a stop.

Invoke with None to resume from the checkpoint

Invoke the graph with None as input and the same config, including the thread_id. The graph loads the latest checkpoint and continues from the interrupted step. Check the run log to confirm it continued rather than restarting from the entry point.

Worked example: Resume after a refund approval

Maple Shop is a fictional online shop. Its graph paused before a refund of 750 dollars for customer cust-123. The table shows the resume.

Step What happens
1 Person approves the 750-dollar refund
2 App invokes the graph with None and thread-ana
3 Graph loads the checkpoint and runs process_refund
4 Run completes and logs the refund

Expected result (UNTESTED): the graph processes the refund once, from the paused state, and does not repeat the earlier steps. We checked the LangGraph checkpointers documentation, which describes invoking with None to resume, but we did not run the resume on this machine.

Limits

Resuming with a new thread_id starts over, and resuming with the wrong checkpoint can repeat a step that already ran. For a step with side effects, check the log before you resume so a repeated run does not send the same refund twice.

Sources

See all