Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(desktop): restore native sidebar resize interaction

6 months ago

17928b8
Authored
mweinbach4/19/2026, 10:24:00 PM
The sidebar separators were still interactive in the browser-shell path, but they never opted out of Electron drag regions. That left the left rail vulnerable once more native titlebar drag surfaces were introduced, which matches the reported desktop-only regression more closely than any store or layout failure.

This change gives the resize separators an explicit native no-drag contract and adds regression coverage for both the left sidebar and context sidebar rails so future chrome work cannot silently re-break them.

Constraint: Electron titlebar overlays use native drag regions that can swallow pointer interaction unless controls explicitly opt out
Rejected: Broaden the hit target or rewrite the sidebar layout first | browser-shell drag already works, so the higher-probability regression is native drag handling rather than geometry
Confidence: medium
Scope-risk: narrow
Reversibility: clean
Directive: Keep resize separators in the explicit no-drag set whenever desktop chrome or titlebar drag surfaces change
Tested: bun test apps/desktop/test/sidebar-resizer.test.tsx apps/desktop/test/context-sidebar.test.tsx; bun run typecheck:desktop; bun test
Not-tested: live Electron drag verification on a native window manager in this headless session

Parentef86365

5 files changed
  • apps/desktop/src/styles.css+4−0
  • apps/desktop/src/ui/layout/ContextSidebarResizer.tsx+1−1
  • apps/desktop/src/ui/layout/SidebarResizer.tsx+1−1
  • apps/desktop/test/context-sidebar.test.tsx+1−0
  • apps/desktop/test/sidebar-resizer.test.tsx+51−0