Skip to content

feat(tui): move 'y' alias from archive to delete in C-x k prompt#445

Merged
edwin-zvs merged 1 commit into
mainfrom
feat/cxk-delete-y
Jun 23, 2026
Merged

feat(tui): move 'y' alias from archive to delete in C-x k prompt#445
edwin-zvs merged 1 commit into
mainfrom
feat/cxk-delete-y

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

Swaps the y alias in the C-x k session-close prompt:

Key Before After
d delete delete
y archive delete
a archive archive

Prompt now reads:

Session <id>: [d/y] delete (drop transcript + worktree) / [a] archive (terminate, keep, hide) / [N] cancel:

y is a natural "yes, do it" confirmation key, so it maps to the more common delete action. Archive stays on a as the explicit opt-in.

Test plan

  • C-x k → type y → session is deleted
  • C-x k → type d → session is deleted
  • C-x k → type a → session is archived
  • C-x k → type n / Enter → cancelled
  • Unit tests: cargo test session_end_prompt passes (3/3)

Prompt now reads [d/y] delete / [a] archive / [N] cancel.
'y' is a natural confirmation key so it maps to delete;
'a' is the sole archive key.
@edwin-zvs
edwin-zvs merged commit 7a21bc7 into main Jun 23, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the feat/cxk-delete-y branch June 23, 2026 03:21
@edwin-zvs edwin-zvs mentioned this pull request Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant