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;