diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index 2681caf8915..7c5e6932624 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -514,9 +514,11 @@ function App(): React.JSX.Element {
{/* Why: the left section of the titlebar matches the sidebar width so
tabs start exactly where the sidebar ends, creating a clean vertical
- alignment between the sidebar edge and the first tab. */}
+ alignment between the sidebar edge and the first tab. When the
+ sidebar is collapsed, shrink-0 prevents the flex-1 tab section from
+ squeezing this area, and mr-2 adds a gap before the first tab. */}
@@ -551,7 +553,6 @@ function App(): React.JSX.Element {
aria-hidden
/>
{activeAgentCount}
-
active
diff --git a/src/renderer/src/store/slices/worktrees.test.ts b/src/renderer/src/store/slices/worktrees.test.ts
index cdffd5b180e..131bb7ba4cf 100644
--- a/src/renderer/src/store/slices/worktrees.test.ts
+++ b/src/renderer/src/store/slices/worktrees.test.ts
@@ -1,3 +1,4 @@
+/* eslint-disable max-lines */
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { create } from 'zustand'
import type { AppState } from '../types'
@@ -265,8 +266,12 @@ describe('removeWorktree state cleanup', () => {
'repo1::/path/wt2': [{ id: 'tab-2', worktreeId: 'repo1::/path/wt2' }]
},
groupsByWorktree: {
- 'repo1::/path/wt1': [{ id: 'group-1', worktreeId: 'repo1::/path/wt1', activeTabId: 'tab-1' }],
- 'repo1::/path/wt2': [{ id: 'group-2', worktreeId: 'repo1::/path/wt2', activeTabId: 'tab-2' }]
+ 'repo1::/path/wt1': [
+ { id: 'group-1', worktreeId: 'repo1::/path/wt1', activeTabId: 'tab-1' }
+ ],
+ 'repo1::/path/wt2': [
+ { id: 'group-2', worktreeId: 'repo1::/path/wt2', activeTabId: 'tab-2' }
+ ]
},
activeGroupIdByWorktree: {
'repo1::/path/wt1': 'group-1',