feat(tui): delete current session - #39750
Merged
Merged
Conversation
kitlangton
added a commit
that referenced
this pull request
Jul 31, 2026
This reverts commit 7814568.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a
Delete sessioncommand for the active V2 TUI session. It is available from the command palette and as/delete; the existingsession_deletebinding also makesCtrl-Dopen the confirmation while viewing a session.The confirmation starts on Confirm, so the full keyboard flow is
Ctrl-D, thenEnter.Escapecancels without deleting anything.Before / After
Before: Deleting the active session required opening the session list, finding the current session, and pressing
Ctrl-Dtwice.After: The active session can be deleted in place. The TUI asks for confirmation, removes the session on the second keypress, and returns home through the existing
session.deletedevent flow.How
session.deletewith the session route inpackages/tui/src/routes/session/index.tsx.DialogConfirmfor the destructive confirmation instead of introducing another dialog.session.deletedlistener.Testing
bun typecheckinpackages/tuibun run testinpackages/tui(573 passed, 5 skipped)v1.4.1against this worktree with required protocol negotiation: created one simulated session, pressedCtrl-D, asserted the confirmation, pressedEnter, asserted the deleted-session toast, and verified the session API returned zero sessionsDemo
OpenCode Drive recording with a simulated model and isolated project. It shows
Ctrl-Dopening the confirmation andEnterdeleting the session and returning home.recording-0b03cce4-7519-4254-a2a5-0d4dd27d5319.mp4
Flow