mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-30 16:23:35 +08:00
Two fixes that together unblock visible thinking on third-party Anthropic proxies (mimo, lgfzer, kiro-account-manager loopback, etc.): 1. src/utils/thinking.ts: when the API provider is firstParty but the base URL is not Anthropic's own, treat the gateway as thinking-capable rather than relying on a per-host whitelist. Drops the dead isMiniMaxAnthropicEndpoint helper. SUPPORTED_CAPABILITIES=none still opts out for any endpoint that genuinely cannot return reasoning. 2. desktop ThinkingBlock now defaults to expanded so reasoning is visible the moment thinking deltas start arriving, matching the streaming experience users expect from reasoning models. Click still toggles. Verified end-to-end against mimo-v2.5-pro through the desktop UI: thinking content streams in 40-110 char increments over a few seconds with the "思考中" cursor visible, then collapses to "已思考" on completion. Tested: - src/utils/__tests__/thinking.test.ts (113 utils tests pass) - desktop ThinkingBlock.test.tsx + chatBlocks.test.tsx (16 tests pass) - Live mimo SSE probe confirms many small thinking_delta events upstream - Browser MCP smoke: complex prompts show real-time thinking growth Confidence: high Scope-risk: narrow
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