mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
The desktop start screen can already collect a project directory before the first chat turn, but workspace management is intentionally session-scoped. Creating a draft session immediately after project selection keeps the file manager, changed-file view, runtime selection, and terminal toolbar on the same path users see after sending the first message. Constraint: Workspace file management state is keyed by session id. Rejected: Add a separate non-session workspace mode | it would duplicate panel state and create a second lifecycle to maintain. Confidence: high Scope-risk: narrow Directive: Keep workspace management session-scoped; create or reuse a session before exposing the workspace panel. Tested: cd desktop && bun run test -- TabBar.test.tsx EmptySession.test.tsx Tested: cd desktop && bun run lint Tested: cd desktop && bun run build Not-tested: Native Tauri folder dialog manual smoke test.
Claude Code Haha Desktop
基于 Tauri 2 + React 的桌面客户端。
开发
bun install
bun run tauri dev
构建
# macOS (Apple Silicon)
./scripts/build-macos-arm64.sh
# Windows (x64, MSI only)
.\scripts\build-windows-x64.ps1
构建产物位于 build-artifacts/ 目录,文件名会显式包含平台、架构和包类型。
常见问题
macOS 提示"已损坏,无法打开"
xattr -cr /Applications/Claude\ Code\ Haha.app