-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Resume/session browser needs a safe two-step delete flow #14713
Description
Summary
The resume/session browser needs a safe destructive-delete flow.
Recommended behavior:
Delmarks the currently selected item for deletion- this enters a confirmation state / modal UX
- only
Enterconfirms Esccancels
This should be a two-step action. Non-reversible deletion should not happen on a single keystroke.
Problem
If session deletion exists or is added without a guarded flow, it becomes too easy to make an irreversible mistake.
That is especially risky in a dense resume/session browser where users are navigating quickly.
Shift+Del is not a good answer either. It is still too easy to trigger by accident, and destructive actions should not depend on “just use a scarier shortcut” as the safety model.
Requested behavior
In the resume/session browser:
- pressing
Delon the selected session marks it for deletion - Codex enters a visible confirmation mode / modal state
Enterconfirms the deletionEsccancels and returns to normal browsing
This should be explicit and visually obvious.
Why this matters
Deletion is not reversible.
That means the UX should optimize for preventing accidental loss, not for shaving one keystroke off a dangerous action.
Two-step confirmation is the wise default here.
Design notes
- the item pending deletion should be clearly highlighted
- the confirmation state should be obvious in the footer / prompt area
- canceling should be instant and predictable
- the interaction should work cleanly with keyboard-only navigation
Related issue
- broader interactive session management: Add interactive session-management for Codex CLI: #6500
Invitation
Would be good to discuss:
- whether the confirmation UI should be inline or modal
- whether multi-select delete should follow the same pattern later
- what the best delete key fallback is on terminals/platforms where
Delis awkward