mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
The chat footer previously read git-info from the persisted session file and refreshed only on tab changes. Repository launches can update the active CLI cwd after the composer has already rendered, so the footer could keep showing an older selected branch even while the running model was operating in the correct checkout. Constraint: The active CLI process is the source of truth for a live session cwd Rejected: Derive the footer branch only from persisted session metadata | metadata can lag behind startup and does not prove the current running cwd Confidence: high Scope-risk: narrow Tested: bun test src/server/__tests__/sessions.test.ts --test-name-pattern "git-info should prefer" Tested: cd desktop && bun run lint Tested: git diff --check
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