Skip to content

Commit c1e370b

Browse files
built-by-asclaude
andcommitted
Update delete session dialog to differentiate local and worktree sessions
Show different confirmation messages when deleting sessions based on their type: - Worktree sessions: mentions removing the git worktree - Local sessions: only mentions removing the session 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7f9a954 commit c1e370b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

renderer.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,13 @@ function deleteSession(sessionId: string) {
696696
const session = sessions.get(sessionId);
697697
if (!session) return;
698698

699-
// Confirm deletion
700-
if (!confirm(`Delete ${session.name}? This will remove the git worktree.`)) {
699+
// Confirm deletion with different message based on session type
700+
const isWorktree = session.config.sessionType === SessionType.WORKTREE;
701+
const message = isWorktree
702+
? `Delete ${session.name}? This will remove the git worktree.`
703+
: `Delete ${session.name}? This will remove the session.`;
704+
705+
if (!confirm(message)) {
701706
return;
702707
}
703708

0 commit comments

Comments
 (0)