mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Closing the desktop window should not tear down the local server when users expect the app to keep serving background work. The Tauri layer now owns that lifecycle: close hides the main window, tray actions restore or quit, and true quit paths still stop sidecars. Constraint: Issue #213 asks for Windows close-to-background behavior, and macOS should follow the same desktop lifecycle. Rejected: Frontend-only close handling | native window close events and OS menu actions need one Tauri-owned path. Confidence: high Scope-risk: moderate Directive: Do not remove the explicit quit marker unless all updater, tray, and app-exit paths are rechecked. Tested: cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --check Tested: cargo check --manifest-path desktop/src-tauri/Cargo.toml Tested: cargo test --manifest-path desktop/src-tauri/Cargo.toml Tested: cd desktop && bun run lint Tested: cd desktop && bun run build Not-tested: Windows cargo check on this macOS machine; x86_64-pc-windows-msvc cross-check stopped in ring because the host lacks Windows C/MSVC headers. Related: https://github.com/NanmiCoder/cc-haha/issues/213
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