From c1e370b3b03083fbd3d06f25df3e70acaab687b2 Mon Sep 17 00:00:00 2001 From: Amrit Subramanian Date: Sat, 25 Oct 2025 12:34:08 -0400 Subject: [PATCH] Update delete session dialog to differentiate local and worktree sessions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- renderer.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/renderer.ts b/renderer.ts index 095de3d..685b651 100644 --- a/renderer.ts +++ b/renderer.ts @@ -696,8 +696,13 @@ function deleteSession(sessionId: string) { const session = sessions.get(sessionId); if (!session) return; - // Confirm deletion - if (!confirm(`Delete ${session.name}? This will remove the git worktree.`)) { + // Confirm deletion with different message based on session type + const isWorktree = session.config.sessionType === SessionType.WORKTREE; + const message = isWorktree + ? `Delete ${session.name}? This will remove the git worktree.` + : `Delete ${session.name}? This will remove the session.`; + + if (!confirm(message)) { return; }