mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The chat UI translated CLI startup failures to a generic localized string and hid the server-provided detail entirely. That made remote Windows debugging guesswork even when the backend had already captured the real stderr payload. This change keeps the localized summary but renders the raw startup detail underneath when it differs, and adds a regression test covering the Git Bash missing case. Constraint: Windows Server repro is happening remotely, so the immediate value is better diagnostics rather than guessing a root cause locally Rejected: Leave the generic translation only | obscures actionable stderr and slows every remote repro cycle Confidence: high Scope-risk: narrow Reversibility: clean Directive: For translated startup errors, preserve backend detail somewhere visible unless it duplicates the summary Tested: cd desktop && bunx vitest run src/components/chat/MessageList.test.tsx Tested: cd desktop && bun run lint Not-tested: Full desktop interaction flow on Windows Server 2022 Related: GitHub issue #62
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