From d25d969dde45e46a06122c0a5219a61b74d71058 Mon Sep 17 00:00:00 2001 From: Amrit Subramanian Date: Tue, 7 Oct 2025 15:02:14 -0400 Subject: [PATCH] Add worktree path display to session sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows the worktree directory path below each session name in the sidebar with subtle gray text to help users identify where each session's files are located. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- renderer.ts | 10 ++++++++-- styles.css | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/renderer.ts b/renderer.ts index c593187..848265a 100644 --- a/renderer.ts +++ b/renderer.ts @@ -329,14 +329,20 @@ function addToSidebar(sessionId: string, name: string, hasActivePty: boolean) { const list = document.getElementById("session-list"); if (!list) return; + const session = sessions.get(sessionId); + const worktreePath = session?.worktreePath || ''; + const item = document.createElement("div"); item.id = `sidebar-${sessionId}`; item.className = "session-list-item"; item.innerHTML = `
- ${name} - +
+ ${name} + + ${worktreePath} +
`; diff --git a/styles.css b/styles.css index 486afef..a28c266 100644 --- a/styles.css +++ b/styles.css @@ -100,6 +100,10 @@ min-width: 80px; } + .session-worktree-path { + @apply text-xs text-gray-500 truncate block mt-0.5; + } + /* Tabs */ .tabs-container { @apply flex bg-gray-900 border-b border-gray-700 overflow-x-auto;