mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The macOS desktop build could lose its draggable gutter on the right side of the tab bar once multiple session tabs consumed the native overlay title area. This adds a Tauri window-drag fallback for clicks on the tab strip's empty space while preserving tab and control interactions, and locks that behavior with focused regression tests. Constraint: Must preserve tab clicks, close buttons, and overflow controls while restoring drag behavior Rejected: Rework the title bar layout around a dedicated spacer | larger UI diff for a narrow hit-testing bug Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep drag fallback limited to true empty gutter hits; do not trigger it from interactive tab descendants Tested: bun run test src/components/layout/TabBar.test.tsx; bun run lint; bun run build; manual macOS app verification Not-tested: Windows runtime drag behavior was not manually exercised after this change Related: #92
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