diff --git a/apps/desktop/src/app/chat/sidebar/index.tsx b/apps/desktop/src/app/chat/sidebar/index.tsx index 8ddc72ad835..a2bb3455bae 100644 --- a/apps/desktop/src/app/chat/sidebar/index.tsx +++ b/apps/desktop/src/app/chat/sidebar/index.tsx @@ -611,19 +611,18 @@ export function ChatSidebar({ } const sorted = sortProjectsForOverview( - filterVisibleProjects(projectTree, dismissedAutoProjects) - .map(project => - excludeProjectSessions( - { - ...project, - // Home is synthetic, so its name is ours to translate — every other - // label is a repo basename or a name the user typed. - label: project.isNoProject ? s.projects.home : project.label, - repos: orderRepos(project.repos) - }, - isPinnedSession - ) - ), + filterVisibleProjects(projectTree, dismissedAutoProjects).map(project => + excludeProjectSessions( + { + ...project, + // Home is synthetic, so its name is ours to translate — every other + // label is a repo basename or a name the user typed. + label: project.isNoProject ? s.projects.home : project.label, + repos: orderRepos(project.repos) + }, + isPinnedSession + ) + ), activeProjectId ) diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsx index e643efef513..27ace696942 100644 --- a/apps/desktop/src/app/command-palette/index.tsx +++ b/apps/desktop/src/app/command-palette/index.tsx @@ -942,7 +942,16 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) { // live state through `detail()`, so the groups must rebuild after a select // that kept the palette open — eslint only sees an unused dep. // eslint-disable-next-line react-hooks/exhaustive-deps - }, [contributedItems, dismissedAutoProjects, go, projectTree, selectTick, settingsSectionLabel, t, updateVersionLabel]) + }, [ + contributedItems, + dismissedAutoProjects, + go, + projectTree, + selectTick, + settingsSectionLabel, + t, + updateVersionLabel + ]) // The long, granular lists (settings fields, API keys, MCP servers, archived // chats) only surface once the user types — otherwise they'd bury the diff --git a/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts b/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts index b91b3af4f80..07f1a236b59 100644 --- a/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts +++ b/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts @@ -33,6 +33,7 @@ describe('removePane close-neighbor selection', () => { group(['workspace'], { active: 'workspace', id: 'main' }), group(['tile:1', 'tile:2', 'tile:3'], { active: 'tile:2', id: 'stack' }) ]) + const next = removePane(tree, 'tile:2') const stack = next ? findGroup(next, 'stack') : null diff --git a/apps/desktop/src/store/layout.ts b/apps/desktop/src/store/layout.ts index 89a39d8d57d..ba9a078920b 100644 --- a/apps/desktop/src/store/layout.ts +++ b/apps/desktop/src/store/layout.ts @@ -232,6 +232,7 @@ export function filterVisibleProjects !(project.isAuto && dismissed.has(project.id))) }