Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): describe the Windows drive-root label case accurately
[._.]/ Adam Eivy27a041d64484
diff --git a/client/src/components/shell/ShellSessionTabs.jsx b/client/src/components/shell/ShellSessionTabs.jsxindex 0dfaa0f533..c2a290f47f 100644--- a/client/src/components/shell/ShellSessionTabs.jsx+++ b/client/src/components/shell/ShellSessionTabs.jsx@@ -6,8 +6,9 @@ const shortId = (id) => id?.slice(0, 6) ?? '';// Separator-agnostic basename for the tab label. A Windows cwd (`I:\code\example-app`)// contains no `/`, so a POSIX-only split leaves the whole path in the tab and blows-// out its width. `filter(Boolean)` drops the empty tail a trailing separator leaves,-// and yields undefined for a bare root so the caller falls through to the short id.+// out its width. `filter(Boolean)` drops the empty tail a trailing separator leaves.+// POSIX `/` has no segment left and yields undefined, so the caller falls through to+// the short id; a Windows drive root keeps its `C:` segment, which reads fine as a label.const folderName = (cwd) => cwd?.split(/[\\/]/).filter(Boolean).pop();// Presentational session-tab strip for the Shell page. External TUI runs get adiff --git a/client/src/components/shell/ShellSessionTabs.test.jsx b/client/src/components/shell/ShellSessionTabs.test.jsxindex 483bf6eb53..ee6cd520ff 100644--- a/client/src/components/shell/ShellSessionTabs.test.jsx+++ b/client/src/components/shell/ShellSessionTabs.test.jsx@@ -47,6 +47,11 @@ describe('ShellSessionTabs labels', () => {expect(screen.getByText('abcdef')).toBeTruthy();});+ it('keeps the drive segment for a Windows drive root', () => {+ renderTabs([session({ cwd: 'I:\\' })]);+ expect(screen.getByText('I:')).toBeTruthy();+ });+it('prefers an explicit label over the cwd', () => {renderTabs([session({ label: 'Claude Code TUI' })]);expect(screen.getByText('Claude Code TUI')).toBeTruthy();