Rerun, requeue, resume or steer
[Resume](../glossary.md#resume), [restart](../glossary.md#restart), [requeue](../glossary.md#requeue), take over, stop, and dismiss do different jobs. Use the row that matches the situation.
Resume, restart, requeue, take over, stop, and dismiss do different jobs. Use the row that matches the situation.
| Situation | Action | Command |
|---|---|---|
| The run failed and the task needs a hint | Requeue with a note | kusaw requeue <run> --note "..." |
| A step failed for a passing reason (a flaky test) | Resume or restart | kusaw resume <run> --failed-only or kusaw restart <run> |
| You want to finish it by hand | Take over | MCP take-over tool (no CLI command) |
| You don't want it any more | Stop or dismiss | kusaw stop <run> or kusaw dismiss <run> |
kusaw serve has to be running to pick up these requests.
| Action | CLI | Dashboard |
|---|---|---|
| Requeue with a note | kusaw requeue <run> --note "..." | Requeue (note required) |
| Resume failed repos | kusaw resume <run> --failed-only | Resume failed repos |
| Restart the run | kusaw restart <run> (needs --yes when there is no terminal) | Restart run |
| Take over | MCP take-over tool | Shown on the run after take-over; the Dashboard does not offer Take over |
| Stop | kusaw stop <run> | Stop all stops every running run; stop one run from the CLI |
| Dismiss | kusaw dismiss <run> | Dismiss |
| Unpause the queue | kusaw resume | Resume |
Requeue with a note
Use this when the run is needs_attention, failed, or stopped, and the task needs a hint. The note is required (requeue needs a note.).
Requeue starts the next run of that task from the last checkpoint, on a new branch factory/<task>-<seq>, with your note and the last findings as try-1 feedback. A requeue of a partially delivered run is refused; use resume or restart.
On the Dashboard, Requeue explains: it starts the next run on a new branch from the last checkpoint, and the current run is dismissed automatically.
Resume or restart
Use this when a step failed for a passing reason (a flaky test) and the task itself is fine.
kusaw resume <run> --failed-onlyreruns the failed repositories in the worktrees that were kept. The run id, branch, and change-set id stay the same. Dashboard: Resume failed repos.kusaw restart <run>reruns every repository from its base commits. Without a terminal it exits 2 and asks for--yes. Dashboard: Restart run. Earlier commits are kept atrefs/factory/backup/<run>/<n>.
kusaw resume with no run id still unpauses the queue. That is not a rerun.
Take over
Use this when you want to finish the work by hand. Take over stops a queued, running, or waiting run and keeps its worktrees. There is no take-over CLI command; use the MCP take-over tool. The Dashboard shows a taken-over run and does not offer Take over.
The run ends stopped with reason taken_over. Continue on the kept branch and worktree, then kusaw dismiss <run> (Dashboard Dismiss) to remove the worktree. The branch stays.
Stop or dismiss
kusaw stop <run>— you don't want this run any more while it is still queued, running, or waiting. Worktrees are removed. Dashboard Stop all is the factory-wide form (kusaw stop --all): every running or finalizing run stops and the queue pauses.kusaw dismiss <run>— the run is alreadyneeds_attentionor taken over. Dismiss removes the worktree and keeps the branch. You can still requeue afterwards.
If it goes wrong
requeue needs a note.— pass--note, or type the note in Requeue before you confirm.Run "<run>" can't be requeued from …— requeue only fromneeds_attention,failed, orstopped. For a flaky failure on a finished run, resume or restart instead.- A requeue of a partially delivered run is refused — use
kusaw resume <run> --failed-onlyorkusaw restart <run>. - Resume with a run id needs
--failed-only.kusaw resumewith no run id only unpauses the queue. - Restart needs confirmation — pass
--yes, or confirm Restart run on the Dashboard. Run "<run>" is not in needs_attention or taken over— dismiss is for those runs only. Stop a live run withkusaw stop <run>.- The run stays
queued— the queue is Paused.kusaw resumewith no run id, or Resume.