mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
1. 修复 Tauri CSP 导致 Emotion CSS-in-JS 样式失效的问题 - Tauri 编译时自动给 style-src 添加 nonce,使 unsafe-inline 失效 - 添加 dangerousDisableAssetCspModification 阻止 Tauri 修改 style-src - 解决 DiffViewer 背景色/缩进等样式丢失 2. 修复 CodeViewer 代码块内容不显示的问题 - react-shiki 异步加载 WASM 期间返回 null,代码区域空白 - 添加 CodeArea 组件,纯文本 fallback + MutationObserver 检测加载完成 3. 修复 Bypass 权限模式切换不生效的问题 - CLI 的 bypassPermissions 需要启动时带 --dangerously-skip-permissions - 运行中切换被 CLI 静默拒绝,前端不知情 - 改为重启 CLI 子进程以正确的参数启动 4. 修复 stream_event tool input JSON 解析失败时 DiffViewer 不渲染 - content_block_stop 的 JSON parse 失败时暂存到 pendingToolBlocks - 由后续 assistant 消息补发完整的 tool input
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