mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-19 13:33:35 +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
Claude Code Haha Desktop
基于 Tauri 2 + React 的桌面客户端。
开发
bun install
bun run tauri dev
构建
# macOS (Apple Silicon)
./scripts/build-macos-arm64.sh
# Windows (x64)
.\scripts\build-windows-x64.ps1
构建产物位于 build-artifacts/ 目录。
常见问题
macOS 提示"已损坏,无法打开"
xattr -cr /Applications/Claude\ Code\ Haha.app