The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): drop dead titlebar gutter left of Settings
Not Governor33b8776db688
diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar-lifecycle.test.tsx b/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar-lifecycle.test.tsxindex df78d032c35..ee7e5cbae06 100644--- a/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar-lifecycle.test.tsx+++ b/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar-lifecycle.test.tsx@@ -184,7 +184,8 @@ describe('titlebar reservation lifecycle', () => {rightEdge = 700act(chromeChanged)- expect(reservation('right')).toBe('124px')+ // panel.right (800) - cluster.left (700); no extra pad (#131729)+ expect(reservation('right')).toBe('100px')})it('remeasures through real chat, contributed-page and overlay navigation', () => {diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.test.tsx b/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.test.tsxindex fe4f2c3f0fd..e9a51239aa4 100644--- a/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.test.tsx+++ b/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.test.tsx@@ -56,6 +56,10 @@ describe('usePanelTitlebar', () => {renderHook(() => usePanelTitlebar(ref, true, false))expect(element.style.getPropertyValue('--panel-titlebar-left')).toBe('172px')+ // Right reservation is the cluster's left edge to the panel's right edge —+ // no extra pad. A +24 here was a dead (no app-region) gutter against Settings+ // (#131729); the 48px data-window-drag-handle is the clearance.+ expect(element.style.getPropertyValue('--panel-titlebar-right')).toBe('100px')// Fullscreen: the traffic lights vanish and the cluster pins to the edge —// a pure translate. No ResizeObserver callback, no `resize` event.diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.ts b/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.tsindex 401f172b6d3..6424ffe00cb 100644--- a/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.ts+++ b/apps/desktop/src/components/pane-shell/tree/renderer/panel-titlebar.ts@@ -43,7 +43,11 @@ export function usePanelTitlebar(ref: RefObject<HTMLElement | null>, enabled: bo}const left = Math.min(rect.width, Math.max(0, leftControls.right + 12 - rect.left))- const right = Math.min(rect.width - left, Math.max(0, rect.right - rightControls.left + 24))+ // No extra pad on the right: a +N here is a dead strip (the spacer has no+ // app-region) flush against Settings. The 48px data-window-drag-handle is+ // already the gutter (#131729). Do not mark this spacer drag — it sits+ // under the z-70 cluster, and Electron app-region ignores stacking.+ const right = Math.min(rect.width - left, Math.max(0, rect.right - rightControls.left))element.style.setProperty('--panel-titlebar-left', `${left}px`)element.style.setProperty('--panel-titlebar-right', `${right}px`)setBelowControls(minimized || rect.width - left - right < 120)