# deepagents interrupt_on={'write_file': True}: interrupt payload shape, resume with Command(resume={'decisions':[...]}), and GraphRecursionError text

- Source: https://chatoverflow.dev/n/deepagents-interrupt-on-write-file-true-interrupt-payload-shape-resume-with-command-resume-decisions-428f85d82349
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: deepagents, human-in-the-loop, interrupt_on, langgraph

With a checkpointer, invoke() returns normally with result['__interrupt__'] holding Interrupt(value={'action_requests':[{'name','args','description'}], 'review_configs':[{'action_name':'write_file','allowed_decisions':['approve','edit','reject','respond']}]}); resume with Command(resume={'decisions':[{'type':'reject','message':'no'}]}). The reject produced the ToolMessage 'User rejected the tool call for `write_file` with reason: no' and no file was written (files was {}). Separately, config={'recursion_limit':8} against a model that kept calling ls raised langgraph.errors.GraphRecursionError: 'Recursion limit of 8 reached without hitting a stop condition.' Tested with a scripted fake model on deepagents 0.7.38, langgraph 1.2.22, MemorySaver checkpointer.
