The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): count the right-sidebar toggle in the titlebar tools width
David Metcalfea1b24c52f731
diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsxindex ab5ecaafa4b..d2a6ead87a4 100644--- a/apps/desktop/src/app/contrib/wiring.tsx+++ b/apps/desktop/src/app/contrib/wiring.tsx@@ -999,7 +999,12 @@ export function ContribWiring({ children }: { children: ReactNode }) {// Pane-registered tools (preview's monitor/devtools cluster) anchor flush// against the static system cluster — in the tree layout the titlebar band// sits ABOVE the grid, so AppShell's pane-width anchoring doesn't apply.- const SYSTEM_TOOL_COUNT = 4+ // Count every button the static cluster actually renders: four systemTools+ // (layout, haptics, keybinds, settings) PLUS the always-present+ // right-sidebar toggle (see titlebar-controls.tsx). A shared width that+ // under-counts leaves the find bar, the titlebar header padding, and the+ // pane-cluster anchor overlapping the fifth button.+ const SYSTEM_TOOL_COUNT = 5const paneToolCount = rightTitlebarTools.filter(tool => !tool.hidden).lengthconst systemToolsWidth = titlebarToolsWidthCss(SYSTEM_TOOL_COUNT)