Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b88fdac
feat(workflows): add cooperative pause and resume
qwen-code-dev-bot Aug 1, 2026
b84c144
fix(workflows): restrict pause to background runs
qqqys Aug 1, 2026
2337d58
fix(cli): clarify foreground workflow pause errors
qwen-code-dev-bot Aug 1, 2026
beba054
fix(core): preserve dispatch errors across cancellation
qwen-code-dev-bot Aug 1, 2026
552cb77
test(core): cover late workflow state callbacks
qwen-code-dev-bot Aug 1, 2026
e0ec123
fix(workflows): address review suggestions (#8320)
qwen-code-dev-bot Aug 2, 2026
ad9adcd
test(workflows): pin review-flagged mutation-surviving branches (#8320)
Aug 2, 2026
9b9d2f5
test(cli): use valid agent status in detail-view reset test (#8320)
Aug 2, 2026
e2d9f09
test(workflows): harden pause-gate settle probes with a full flush (#…
Aug 2, 2026
7b35105
fix(workflows): address round-5 review findings (#8320)
Aug 3, 2026
75c6653
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
wenshao Aug 3, 2026
bb9be5c
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 3, 2026
4b27640
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 3, 2026
3fc2555
test(ci): sync review timeout assertions with repository variables (#…
qwen-code-dev-bot Aug 3, 2026
56822a1
Merge remote-tracking branch 'origin/main' into codex/issue-8105-work…
qwen-code-dev-bot Aug 3, 2026
b2c97d5
Merge remote-tracking branch 'origin/main' into codex/issue-8105-work…
qwen-code-dev-bot Aug 4, 2026
25fb589
fix(workflows): address round-6 review findings (#8320)
qwen-code-dev-bot Aug 4, 2026
f3ea784
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 4, 2026
eb6e6a4
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
wenshao Aug 4, 2026
eafa7fb
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 4, 2026
4f89c15
fix(workflows): address round-7 review findings (#8320)
qwen-code-dev-bot Aug 4, 2026
e005d60
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 4, 2026
da95171
fix(workflows): address round-8 review findings (#8320)
qwen-code-dev-bot Aug 5, 2026
57e9044
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
wenshao Aug 5, 2026
c594078
fix(workflows): address round-9 review findings (#8320)
qwen-code-dev-bot Aug 6, 2026
3f5f27d
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
wenshao Aug 6, 2026
e27867d
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 6, 2026
9685fb0
fix(workflows): address round-10 review findings (#8320)
qwen-code-dev-bot Aug 6, 2026
fd8a6ed
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
wenshao Aug 6, 2026
81d7702
fix(workflows): address round-11 review findings (#8320)
qwen-code-dev-bot Aug 7, 2026
5c117fa
Merge branch 'main' into codex/issue-8105-workflow-pause-resume
qwen-code-dev-bot Aug 7, 2026
89b7803
fix(workflows): address round-12 review findings (#8320)
qwen-code-dev-bot Aug 7, 2026
750133f
fix(workflows): address round-13 review findings (#8320)
qwen-code-dev-bot Aug 7, 2026
444b52b
fix(workflows): address round-14 review findings (#8320)
qwen-code-dev-bot Aug 7, 2026
e41fb76
fix(workflows): address round-15 review findings (#8320)
qwen-code-dev-bot Aug 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/users/features/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Commands for managing AI tools and models.
| `/arena` | Manage Arena sessions | `/arena start`, `/arena stop`, `/arena status`, `/arena select` (alias `choose`) |
| `/goal` | Set a goal — keep working until condition met | `/goal <condition>`, `/goal clear` |
| `/tasks` | List background tasks | `/tasks` |
| `/workflows` | Inspect workflow runs | `/workflows`, `/workflows <runId>` |
| `/workflows` | Inspect workflow runs; cooperatively pause/resume a background run | `/workflows`, `/workflows <runId>`, `/workflows p <runId>` |
| `/lsp` | Show LSP server status | `/lsp` |
| `/trust` | Manage folder trust settings | `/trust` |

Expand Down
14 changes: 14 additions & 0 deletions docs/users/reference/keyboard-shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ These shortcuts apply while an interactive foreground shell command is running.
| `Ctrl+Shift+Up` / `Ctrl+Shift+Down` | Scroll the focused shell up or down. |
| `Ctrl+B` | Promote the shell to a background task. The child keeps running, the agent's turn unblocks, and the shell appears in `/tasks` and the Background tasks dialog. |

## Background tasks dialog

Focus the Background tasks pill in the footer (use `Down Arrow` from an empty composer — this moves through the live-agent panel and, if present, the Arena tab bar first) and press `Enter` to open the dialog. It lists background agents, shells, monitors, workflow runs, and memory dreams.

| Shortcut | Description |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Up Arrow` / `Down Arrow` | Move the selection between tasks. |
| `Enter` | Open the detail view for the selected task. |
| `x` | Stop the selected task (abandon a paused agent). A foreground agent that blocks your turn needs a second `x` to confirm. |
| `r` | Resume the selected paused agent. |
| `p` | Cooperatively pause or resume the selected background workflow run. No new agents start while paused, but script code between agent calls keeps running. |
| `s` | Save the script of a finished (completed, failed, or cancelled) workflow run (detail view only). |
| `Left Arrow` / `Esc` | Return to the list from the detail view, or close the dialog. |

## Suggestions

| Shortcut | Description |
Expand Down
1 change: 0 additions & 1 deletion eslint.legacy-filenames.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ export const legacyFilenames = [
'clearContextDefaults',
'combinedAbortSignal',
'compressFastCommand',
'concurrencyLimiter',
'configHash',
'corruptFile',
'cronTasksFile',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,16 @@ export default {
'Background agent needs approval': "L'agent en segon pla necessita aprovació",
'Approve or deny the request above': 'Aprova o denega la sol·licitud de dalt',
Running: 'En execució',
Pausing: 'Pausant',
Paused: 'En pausa',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
"La pausa és cooperativa; el treball en curs pot acabar abans que el flux de treball es posi en pausa. Una crida d'agent que espera una aprovació d'eina manté l'execució en aquest estat i continua comptant per al límit de temps actiu fins que es respongui l'aprovació.",
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
"En pausa: no s'iniciaran agents nous; el codi de l'script entre crides d'agent continua executant-se. Prem p per reprendre. /clear, /branch i el canvi de sessió cancel·len les execucions en pausa.",
'Pause/resume was rejected; the workflow state changed. Try again.':
"La pausa o la represa ha estat rebutjada; l'estat del flux de treball ha canviat. Torna-ho a provar.",
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'Consell: usa `/workflows p <runId>` o Tasques en segon pla + p per posar en pausa/reprendre cooperativament; usa `/workflows <runId>` per veure els detalls.',
Completed: 'Completada',
Failed: 'Fallida',
Stopped: 'Aturada',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,16 @@ export default {
'Approve or deny the request above':
'Genehmigen oder lehnen Sie die obige Anfrage ab',
Running: 'Läuft',
Pausing: 'Wird pausiert',
Paused: 'Pausiert',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'Das Pausieren ist kooperativ; laufende Arbeiten werden möglicherweise abgeschlossen, bevor der Workflow pausiert ist. Ein Agentenaufruf, der auf eine Tool-Genehmigung wartet, hält den Lauf in diesem Zustand und zählt weiter gegen das Aktive-Zeit-Limit, bis die Genehmigung beantwortet wird.',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'Pausiert: Es werden keine neuen Agenten gestartet; Skriptcode zwischen Agentenaufrufen läuft weiter. Drücke p, um fortzufahren. /clear, /branch und ein Sitzungswechsel beenden pausierte Läufe.',
'Pause/resume was rejected; the workflow state changed. Try again.':
'Pausieren/Fortsetzen wurde abgelehnt; der Workflow-Status hat sich geändert. Versuche es erneut.',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'Tipp: Verwende `/workflows p <runId>` oder Hintergrundaufgaben + p, um einen Lauf kooperativ zu pausieren/fortzusetzen; mit `/workflows <runId>` siehst du Details.',
Completed: 'Abgeschlossen',
Failed: 'Fehlgeschlagen',
Stopped: 'Gestoppt',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,16 @@ export default {
'Background agent needs approval': 'Background agent needs approval',
'Approve or deny the request above': 'Approve or deny the request above',
Running: 'Running',
Pausing: 'Pausing',
Paused: 'Paused',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.',
'Pause/resume was rejected; the workflow state changed. Try again.':
'Pause/resume was rejected; the workflow state changed. Try again.',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.',
Completed: 'Completed',
Failed: 'Failed',
Stopped: 'Stopped',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,16 @@ export default {
'Approve or deny the request above':
'Approuvez ou refusez la demande ci-dessus',
Running: 'En cours',
Pausing: 'Mise en pause',
Paused: 'En pause',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
"La pause est coopérative ; le travail en cours peut se terminer avant que le workflow ne soit mis en pause. Un appel d'agent en attente d'une approbation d'outil maintient l'exécution dans cet état et continue de compter dans la limite de temps actif tant que l'approbation n'a pas été traitée.",
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
"En pause : aucun nouvel agent ne démarrera ; le code du script entre les appels d'agents continue de s'exécuter. Appuyez sur p pour reprendre. /clear, /branch et le changement de session annulent les exécutions en pause.",
'Pause/resume was rejected; the workflow state changed. Try again.':
"La mise en pause ou la reprise a été refusée ; l'état du workflow a changé. Réessayez.",
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'Astuce : utilisez `/workflows p <runId>` ou Tâches en arrière-plan + p pour mettre en pause/reprendre de façon coopérative ; utilisez `/workflows <runId>` pour les détails.',
Completed: 'Terminé',
Failed: 'Échec',
Stopped: 'Arrêté',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,16 @@ export default {
'Approve or deny the request above':
'上のリクエストを承認または拒否してください',
Running: '実行中',
Pausing: '一時停止に移行中',
Paused: '一時停止中',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'一時停止は協調的です。ワークフローが一時停止される前に、実行中の作業が完了する場合があります。ツール承認を待っているエージェント呼び出しは実行をこの状態に留め、承認に応答するまでアクティブ時間の上限に加算され続けます。',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'一時停止中:新しいエージェントは開始されません。エージェント呼び出し間のスクリプトコードは実行を続けます。再開するには p を押してください。/clear、/branch、またはセッションを切り替えると、一時停止中の実行はキャンセルされます。',
'Pause/resume was rejected; the workflow state changed. Try again.':
'一時停止/再開は拒否されました。ワークフローの状態が変化しました。もう一度お試しください。',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'ヒント:`/workflows p <runId>` またはバックグラウンドタスク + p で実行を協調的に一時停止/再開できます。詳細は `/workflows <runId>` で確認できます。',
Completed: '完了',
Failed: '失敗',
Stopped: '停止済み',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,16 @@ export default {
'Agente em segundo plano precisa de aprovação',
'Approve or deny the request above': 'Aprove ou negue a solicitação acima',
Running: 'Em execução',
Pausing: 'Pausando',
Paused: 'Pausado',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'A pausa é cooperativa; o trabalho em andamento pode terminar antes que o fluxo de trabalho seja pausado. Uma chamada de agente aguardando aprovação de ferramenta mantém a execução neste estado e continua contando para o limite de tempo ativo até que a aprovação seja respondida.',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'Pausado: nenhum novo agente será iniciado; o código do script entre chamadas de agente continua em execução. Pressione p para retomar. /clear, /branch e a troca de sessão cancelam execuções pausadas.',
'Pause/resume was rejected; the workflow state changed. Try again.':
'A pausa/retomada foi rejeitada; o estado do fluxo de trabalho mudou. Tente novamente.',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'Dica: use `/workflows p <runId>` ou Tarefas em segundo plano + p para pausar/retomar cooperativamente; use `/workflows <runId>` para ver detalhes.',
Completed: 'Concluído',
Failed: 'Falhou',
Stopped: 'Parado',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,16 @@ export default {
'Background agent needs approval': 'Фоновый агент требует подтверждения',
'Approve or deny the request above': 'Подтвердите или отклоните запрос выше',
Running: 'Выполняется',
Pausing: 'Приостанавливается',
Paused: 'Приостановлено',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'Приостановка кооперативная; выполняемая работа может завершиться до того, как рабочий процесс будет приостановлен. Вызов агента, ожидающий одобрения инструмента, удерживает запуск в этом состоянии и продолжает учитываться в лимите активного времени, пока одобрение не будет обработано.',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'Приостановлено: новые агенты не будут запускаться; код скрипта между вызовами агентов продолжает выполняться. Нажмите p, чтобы возобновить. /clear, /branch и переключение сессий отменяют приостановленные запуски.',
'Pause/resume was rejected; the workflow state changed. Try again.':
'Приостановка/возобновление отклонены; состояние рабочего процесса изменилось. Повторите попытку.',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'Подсказка: используйте `/workflows p <runId>` или «Фоновые задачи» + p для кооперативной приостановки/возобновления; используйте `/workflows <runId>` для подробностей.',
Completed: 'Завершено',
Failed: 'Ошибка',
Stopped: 'Остановлено',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,16 @@ export default {
'Background agent needs approval': '背景 agent 等待審批',
'Approve or deny the request above': '請核准或拒絕上方的請求',
Running: '執行中',
Pausing: '暫停中',
Paused: '已暫停',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'暫停是協作式的;在工作流暫停之前,進行中的工作可能會先完成。等待工具審批的 agent 呼叫會讓執行保持在此狀態,且在審批得到回應前仍會計入活躍時間上限。',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'已暫停:不會啟動新的 agent;agent 呼叫之間的指令碼會繼續執行。按 p 恢復。/clear、/branch 以及切換會話會取消已暫停的執行。',
'Pause/resume was rejected; the workflow state changed. Try again.':
'暫停/恢復被拒絕;工作流狀態已變更。請重試。',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'提示:使用 `/workflows p <runId>`,或在背景任務中按 p 協作暫停/恢復;使用 `/workflows <runId>` 檢視詳情。',
Completed: '已完成',
Failed: '失敗',
Stopped: '已停止',
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/src/i18n/locales/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,16 @@ export default {
'Background agent needs approval': '后台 agent 等待审批',
'Approve or deny the request above': '请批准或拒绝上方的请求',
Running: '运行中',
Pausing: '暂停中',
Paused: '已暂停',
'Pause is cooperative; in-flight work may finish before the workflow is paused. An agent call waiting on a tool approval keeps the run in this state and still counts against the active-time limit until the approval is answered.':
'暂停是协作式的;在工作流暂停之前,进行中的工作可能会先完成。等待工具审批的 agent 调用会让运行保持在此状态,且在审批得到响应前仍会计入活跃时间上限。',
'Paused: no new agents will start; script code between agent calls keeps running. Press p to resume. /clear, /branch, and switching sessions cancel paused runs.':
'已暂停:不会启动新的 agent;agent 调用之间的脚本代码会继续运行。按 p 恢复。/clear、/branch 以及切换会话会取消已暂停的运行。',
'Pause/resume was rejected; the workflow state changed. Try again.':
'暂停/恢复被拒绝;工作流状态已变化。请重试。',
'Tip: use `/workflows p <runId>` or Background tasks + p to cooperatively pause/resume; use `/workflows <runId>` for details.':
'提示:使用 `/workflows p <runId>`,或在后台任务中按 p 协作暂停/恢复;使用 `/workflows <runId>` 查看详情。',
Completed: '已完成',
Failed: '失败',
Stopped: '已停止',
Expand Down
Loading
Loading