mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The desktop shell now owns sidebar collapse state, the collapsed rail keeps a visible recovery affordance, and keyboard search expands the sidebar before focusing. The UI work also smooths the width transition so the main chat area can take over without the previous abrupt cutover. Constraint: The desktop app must keep a recovery path visible in narrow layouts on macOS and Windows Constraint: Existing sidebar behavior needed regression coverage before further UI work Rejected: Fully hide the sidebar at 0 width | recovery affordance became too fragile for this iteration Rejected: Keep boxed restore controls in the collapsed rail | visually heavy and easy to misplace Confidence: medium Scope-risk: moderate Reversibility: clean Directive: Keep the collapsed rail width and the inner sidebar panel width in sync or expand controls will be clipped again Tested: cd desktop && bun run lint Tested: cd desktop && bun run test Sidebar.test.tsx Not-tested: Full desktop manual pass across every app screen after the final icon/layout tweaks