All documentation pages

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

Reasons a run stops for a decision, and what resume does
ReasonWhenResume does
max_planning_roundsNo agreed plan after the planning round limitImplements the latest plan, recorded as accepted by you
plan_readyThe plan is final and safety.pause_before_implement is onStarts implementing
max_review_roundsNot approved after the review round limitStarts another fix round
critical_findingThe reviewer reported a critical findingStarts another fix round
gates_failingRequired gates failed several rounds in a rowStarts another fix round
implementer_blockedThe implementer reported it is blockedRe-runs the implementation round
agent_error, orchestrator_errorAn agent call failed after its retries, or AgentDuo hit an errorRe-runs the failed step

Your answers

The four answers
AnswerEffect
ResumeContinues as the table above says, optionally with a note for the agents.
ReviseGoes back to planning with your note, which should settle the disagreement.
AbortEnds the run. Its files stay; the working tree keeps whatever changes were made.
Decide laterLeaves 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 abort

Note

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

What stopping does to each kind of work
WorkStopped with Esc or StopAfterwards
An answerIt ends; nothing of it joins the conversationAsk again
A discussionIt ends; nothing of it joins the conversationAsk again
A pipeline stepThe 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. /pipeline while 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

Ways to resume
WhereHow
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
Terminalduo resume (the latest run) or duo resume <run id>
Desktop appResumable runs in the sidebar lists the project’s stopped and waiting runs; one click resumes one
VS CodeResume 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-config uses today’s config.yaml instead; 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.