Decisions, stop and resume
A run stops in two ways: it asks you a question (HUMAN_REVIEW), or you stop it. Either way its state is saved, and it continues from the step it was in.
On this page
When a run asks you
| Reason | When | Resume does |
|---|---|---|
max_planning_rounds | No agreed plan after the planning round limit | Implements the latest plan, recorded as accepted by you |
plan_ready | The plan is final and safety.pause_before_implement is on | Starts implementing |
max_review_rounds | Not approved after the review round limit | Starts another fix round |
critical_finding | The reviewer reported a critical finding | Starts another fix round |
gates_failing | Required gates failed several rounds in a row | Starts another fix round |
implementer_blocked | The implementer reported it is blocked | Re-runs the implementation round |
agent_error, orchestrator_error | An agent call failed after its retries, or AgentDuo hit an error | Re-runs the failed step |
Your answers
| Answer | Effect |
|---|---|
| Resume | Continues as the table above says, optionally with a note for the agents. |
| Revise | Goes back to planning with your note, which should settle the disagreement. |
| Abort | Ends the run. Its files stay; the working tree keeps whatever changes were made. |
| Decide later | Leaves the run waiting. Answer it later from any interface. |
- Terminal chat and a
duo "<task>"run in a terminal: a menu shows the reason with Resume, Revise (with a note), views of the plan, the review, the plan feedback and the diff stat, Abort, and Decide later. Ctrl+C at the menu also means Decide later. - Desktop app and VS Code: the decision appears above the composer, with a note field. It stays there when you switch conversations.
- Plain mode (CI, background, piped output): the run exits with code 2. Answer with
duo resume --decision ….
Terminal
duo resume --decision resume
duo resume --decision revise --note "Keep the public API; change only the parser"
duo resume 20261031-101500-add-refresh-tokens --decision abortNote
Files waiting to be attached do not go with a decision. Send them with a message first (a note for the run’s next step), or choose Decide later and resume with a note.
Stop and Esc
| Work | Stopped with Esc or Stop | Afterwards |
|---|---|---|
| An answer | It ends; nothing of it joins the conversation | Ask again |
| A discussion | It ends; nothing of it joins the conversation | Ask again |
| A pipeline step | The step ends; the run is saved as interrupted | /resume [note] re-runs that step |
- In a pipeline run in the terminal (
duo "<task>"), q stops after the current step and Ctrl+C stops now. A second Ctrl+C ends the process at once; the exit code is 130. - Enter on an empty line only reminds you of
/resume./pipelinewhile a run is stopped starts a new run; the stopped one keeps its id and stays resumable. - Closing the chat, quitting the desktop app or reloading VS Code stops the current step the same way: decisions are deferred, unanswered permission prompts are denied, the lock is freed, and the run stays resumable.
Resuming a run
| Where | How |
|---|---|
| Chat | /resume continues the stopped or waiting run; /resume <note> adds a note; /resume <run id> picks a run, also one from an earlier session |
| Terminal | duo resume (the latest run) or duo resume <run id> |
| Desktop app | Resumable runs in the sidebar lists the project’s stopped and waiting runs; one click resumes one |
| VS Code | Resume in a tab’s title bar continues the latest run |
- Runs are shared: a run started in one interface can be resumed in another, in the same workspace. A run belongs to its workspace; resuming it from another folder is refused.
- A resumed run keeps the configuration it started with (its
config.json).duo resume --reload-configuses today’sconfig.yamlinstead; Claude Code’s and Codex’s own settings always apply as they are now. - Settings changed in the chat that apply from the next call (model, effort, permission mode and the like) reach a resumed run too; settings that apply from the next run (
agents.*,limits.*) do not. When a change applies.
Continuing a conversation is not resuming a run
Opening an earlier conversation (in the desktop app’s sidebar or VS Code’s Conversations view) lets you keep talking: the next question carries what was said. It does not restart any work. Resuming continues a pipeline run from its saved step; it does not need the conversation, nor the original attached files, which the run copied.