mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The workspace panel already had the attachment model for both files and directories, but directory rows lacked the same right-click path and there was no low-risk handoff from the panel into the active composer text. This keeps context attachment as the stable source of file content while adding a small composer insertion event for inline citations. Constraint: Keep the existing attachment pipeline unchanged so file and directory contents still flow through the proven workspace reference path Rejected: Build a rich inline chip editor immediately | larger composer and history-synchronization surface than these issues require Confidence: high Scope-risk: moderate Directive: Do not replace workspace attachments with inline text-only mentions without rechecking model-content generation and history restore behavior Tested: cd desktop && bunx vitest run src/components/workspace/WorkspacePanel.test.tsx Tested: cd desktop && bunx vitest run src/components/chat/ChatInput.test.tsx Tested: bun run check:desktop Not-tested: Live provider response quality with inline citation wording
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