Add archive and delete actions to the /agents dashboard
Feature request
Codex CLI 0.149.0 added the shared /agents dashboard for browsing and managing agent sessions. The dashboard supports opening, searching, grouping, renaming, starting, and stopping sessions, but it does not provide a way to archive or delete the selected session.
Ctrl-X is currently labeled stop. It only interrupts an in-progress turn when the selected thread has ThreadStatus::Active. For Ready or Finished sessions, it intentionally does nothing. It does not remove the session from the dashboard.
The only supported removal workflow is currently outside the dashboard:
codex archive <session-name-or-UUID>
codex delete <session-name-or-UUID>
This requires renaming or otherwise identifying the session, opening another terminal, and invoking the command manually.
Expected behavior
The /agents dashboard should expose lifecycle actions for the selected session:
- Archive: remove the selected session from normal session lists while preserving it for
codex unarchive. - Delete permanently: delete the selected session after an explicit confirmation.
- Keep Stop distinct: stopping an active turn should not imply permanent deletion.
- Make the new actions configurable under the existing
tui.keymap.agentskeymap context. - Update the dashboard immediately after an archive or deletion notification.
- Support the same behavior in both the in-session
/agentsview and the standalonecodex agentsdashboard.
Archive should be the safe, prominent removal action. Permanent deletion should require a clear confirmation showing the session name or UUID.
Inspiration: Claude Code agent view
Claude Code's equivalent claude agents dashboard uses a compact, discoverable interaction:
- Press
Ctrl+Xonce to stop the selected session. - Press
Ctrl+Xagain within two seconds to remove it from agent view. - The conversation transcript remains on disk and can still be resumed with
claude --resume. - The same non-destructive removal is available from the shell as
claude rm <session-id>.
Codex already has the matching durable lifecycle primitive: codex archive. A natural Codex interaction would therefore be:
- First
Ctrl+X: stop the active turn, preserving the current behavior. - Second
Ctrl+Xwithin a short confirmation window: archive the selected session and remove it from the dashboard. - A separate, more explicit action: permanently delete the session after confirmation.
Claude Code reference: https://code.claude.com/docs/en/agent-view#organize-the-list
Current implementation
The built-in agents keymap currently exposes only:
searchnew_taskrenamestoptoggle_grouping
The stop handler dispatches an interrupt only for a selected thread whose status is Active; otherwise the keypress is consumed without an action.
Relevant implementation:
- Agents keymap defaults: https://github.com/openai/codex/blob/rust-v0.149.0/codex-rs/tui/src/keymap.rs#L1423-L1429
- Stop handler: https://github.com/openai/codex/blob/rust-v0.149.0/codex-rs/tui/src/app/agents_overview_view.rs#L499-L507
- Dashboard shortcut work: https://github.com/openai/codex/pull/39142
- Related cleanup request: https://github.com/openai/codex/issues/30903
Environment
- Codex CLI:
0.149.0 - Platform: Fedora Linux
- Terminal: Ghostty 1.3.1
- Multiplexer: tmux 3.7b
The terminal configuration is not intercepting Ctrl-X; this is a missing dashboard action rather than a terminal key-routing problem.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Not a duplicate - this is about CLI Agents interface, their about ChatGPT desktop interace.