mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
A newly opened desktop session can return a live context snapshot before any prompt content has been counted. When that snapshot is all zeroes, rendering it as 0% makes the first real context update look like an unexplained jump. The composer now keeps that empty live snapshot in the pending state while still using its model metadata. Constraint: Live context snapshots can be initialized before any user-visible context exists Rejected: Render 0% for zero-token live snapshots | it repeats the misleading empty-session state Confidence: high Scope-risk: narrow Directive: Do not show numeric context usage for empty zero-token sessions Tested: cd desktop && bun run test -- pages.test.tsx Tested: cd desktop && bun run lint
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