interrupt()
An API in LangGraph used to implement human intervention. After it is called, the graph enters an interrupted state and waits for an external approval signal; on resumption it replays nodes from the most recent checkpoint, so preceding code may execute again.
Core Facts
When resuming from a LangGraph interrupt(), the entire node is re-executed from the beginning; side effects that occur before the interruption must be idempotent or moved to after the interruption.
LangGraph provides interrupt_before / interrupt_after hooks that allow inspection logic to be injected before and after specific nodes
Timeline (last 90 days)
LangGraph's interrupt() throws an internal signal in the current node; after the graph engine catches it, it writes the paused state to the checkpointer, and the process can exit normally.
In LangGraph version 1.2.22, resuming a thread that has already ended with 'approved' using Command(resume='rejected') returns the old 'approved' result, with no error and exit code 0.
The pragmatic combined approach is: use a message queue plus a drain node to achieve low-latency soft steering, and reserve interrupt() for high-risk nodes that truly require a hard pause.
You should not set a pause before every node; pause only before steps that are hard to undo and would not reveal their own errors (such as initiating a refund, deleting records, or sending emails).
The interrupt payload should contain the actual effect (action name, target record, amount, dry-run or diff), not the model's explanation of its own plan.
LangGraph documentation explicitly prohibits wrapping interrupt() in a bare try/except, because the exception will be caught, the interrupt signal cannot be passed back to the graph, and the graph will never pause.
LangGraph maintains a list of resume values for each task, matched strictly by index; the order of interrupt calls is critical, and an interrupt() cannot be conditionally skipped.
The runtime has a built-in pure Python executor that follows the same interrupt() contract as LangGraph: when it encounters a tool requiring approval, it throws a pause, writes {"state", "next", "interrupt"} to the checkpointer, and returns an approval request.
LangChain needs middleware to insert a human review step, whereas LangGraph can call interrupt() at any position in the graph.
When resuming from a LangGraph interrupt(), the entire node is re-executed from the beginning; side effects that occur before the interruption must be idempotent or moved to after the interruption.
2 more timeline events
All Facts (12)
When resuming from a LangGraph interrupt(), the entire node is re-executed from the beginning; side effects that occur before the interruption must be idempotent or moved to after the interruption.
65%VerifiedLangGraph provides interrupt_before / interrupt_after hooks that allow inspection logic to be injected before and after specific nodes
65%UnverifiedLangGraph's interrupt() throws an internal signal in the current node; after the graph engine catches it, it writes the paused state to the checkpointer, and the process can exit normally.
50%UnverifiedIn LangGraph version 1.2.22, resuming a thread that has already ended with 'approved' using Command(resume='rejected') returns the old 'approved' result, with no error and exit code 0.
50%UnverifiedThe pragmatic combined approach is: use a message queue plus a drain node to achieve low-latency soft steering, and reserve interrupt() for high-risk nodes that truly require a hard pause.
50%UnverifiedThe interrupt payload should contain the actual effect (action name, target record, amount, dry-run or diff), not the model's explanation of its own plan.
50%UnverifiedYou should not set a pause before every node; pause only before steps that are hard to undo and would not reveal their own errors (such as initiating a refund, deleting records, or sending emails).
50%UnverifiedLangGraph documentation explicitly prohibits wrapping interrupt() in a bare try/except, because the exception will be caught, the interrupt signal cannot be passed back to the graph, and the graph will never pause.
50%UnverifiedLangGraph maintains a list of resume values for each task, matched strictly by index; the order of interrupt calls is critical, and an interrupt() cannot be conditionally skipped.
50%UnverifiedThe runtime has a built-in pure Python executor that follows the same interrupt() contract as LangGraph: when it encounters a tool requiring approval, it throws a pause, writes {"state", "next", "interrupt"} to the checkpointer, and returns an approval request.
50%UnverifiedLangChain needs middleware to insert a human review step, whereas LangGraph can call interrupt() at any position in the graph.
50%UnverifiedIn LangGraph, the human's response becomes the return value of interrupt().
50%