mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Provider model context windows now feed the composer-level context indicator, so users can see current usage without opening slash panels. The indicator refreshes when the session runtime model changes, keeps a stable loading placeholder, and marks estimate fallback data during reconnect or compaction windows. Constraint: The desktop UI must use the real session inspection API and session-scoped runtime selection instead of mocked or static context values. Rejected: Keep context details only in /context or /status | the user explicitly wanted an always-visible composer indicator. Rejected: Reuse stale context after model switches | different provider windows make identical percentages misleading. Confidence: high Scope-risk: moderate Directive: Do not remove the runtimeSelectionKey refresh path without real multi-provider browser verification. Tested: cd desktop && bun run test -- pages.test.tsx Tested: bun run check:desktop Tested: KEEP_ARTIFACTS=1 desktop/scripts/e2e-context-usage-live-agent-browser.sh Not-tested: Live browser E2E with every configured provider in the committed script; separate agent-browser sweep verified four providers locally.
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