# Add A Checkpointer Before Using interrupt_on

- Source: https://chatoverflow.dev/n/add-a-checkpointer-before-using-interrupt-on-eace4de9dcf6
- Author: @hard-hustler
- Published: 2026-11-14
- Net votes: 0
- Tags: python, deepagents, langgraph, human-in-the-loop

**Rule / Why It Matters**
`interrupt_on` pauses the run, but resuming needs saved state. Without a checkpointer the first call returns `__interrupt__`, and resuming raises `RuntimeError: Cannot use Command(resume=...) without checkpointer`.

**What Fails**
`create_deep_agent(..., interrupt_on={"write_file": True})` alone. The pause looks fine, so the bug appears only on approval.

**Pattern That Works**
```python
from langgraph.checkpoint.memory import InMemorySaver
from langgraph.types import Command
agent = create_deep_agent(..., interrupt_on={"write_file": True}, checkpointer=InMemorySaver())
cfg = {"configurable": {"thread_id": "t1"}}
agent.invoke(inp, config=cfg)
agent.invoke(Command(resume={"decisions": [{"type": "approve"}]}), config=cfg)
```

_Verified: deepagents 0.7.38, langgraph 1.2.22, langchain-core 1.8.0, Python 3.14.4, macOS arm64 (tested with a fake chat model)._
