mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
When the tab strip overflows, newly opened sessions were active but could remain outside the visible horizontal viewport. The tab bar already owns element refs for drag and close behavior, so the focused fix scrolls the active tab into view after activation and refreshes overflow controls on the next frame. Constraint: Preserve existing tab ordering, drag behavior, and close-button affordances. Rejected: Reorder new sessions to the left | changes established tab order and makes history harder to scan. Confidence: high Scope-risk: narrow Directive: Keep active-tab visibility behavior in TabBar so all activation paths share it. Tested: cd desktop && bun run test -- TabBar Tested: cd desktop && bun run lint Tested: cd desktop && bun run build Tested: agent-browser overflow smoke with six tabs confirmed active Untitled Session fullyVisible=true Not-tested: Full bun run verify gate.
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