feat: delete session from within attached tmux session (Ctrl+D)#42
Open
omrisavra wants to merge 2 commits into
Open
feat: delete session from within attached tmux session (Ctrl+D)#42omrisavra wants to merge 2 commits into
omrisavra wants to merge 2 commits into
Conversation
Previously, only the visible screen was cleared (\x1b[2J) when attaching/detaching tmux sessions. This left previous session content in the terminal's scrollback buffer, visible when scrolling up. Added \x1b[3J (clear scrollback) alongside \x1b[2J in all screen transition points: attachSessionSync, attachWithPty, SSH attach, and updater. Also added refresh-client after switch-client in tmux.conf to force clean redraws when switching sessions via Ctrl+]/Ctrl+\. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a new keybind (Ctrl+D) that allows deleting the current session directly from within the attached tmux window, without having to detach first and navigate the home screen. Uses the same signal file pattern as Ctrl+K (command palette) and Ctrl+L (session list): creates /tmp/agent-view-delete-session, detaches, and the TUI picks up the signal to trigger the existing delete flow (including worktree cleanup confirmation dialog). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9 tasks
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.
Summary
/tmp/agent-view-delete-session, detaches, and the TUI picks up the signal to trigger the standard delete flowChanges
src/core/tmux.conf— newCtrl+Dkeybind + status bar hintsrc/core/tmux.ts—DELETE_SESSION_SIGNALconstant,wasDeleteSessionRequested()function, signal cleanup inattachSessionSyncsrc/tui/routes/home.tsx— check for delete signal after detach, triggerhandleDelete()Test plan
🤖 Generated with Claude Code