Add archive and delete actions to the /agents dashboard

Open 💬 2 comments Opened Aug 21, 2026 by 1vecera
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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.agents keymap context.
  • Update the dashboard immediately after an archive or deletion notification.
  • Support the same behavior in both the in-session /agents view and the standalone codex agents dashboard.

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+X once to stop the selected session.
  • Press Ctrl+X again 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+X within 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:

  • search
  • new_task
  • rename
  • stop
  • toggle_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:

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.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 6 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #39540

Powered by Codex Action

1vecera · 3 days ago

Not a duplicate - this is about CLI Agents interface, their about ChatGPT desktop interace.