mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The footer project chip previously kept showing only the source project and selected branch even after a session launched inside an isolated CLI worktree. That made an active worktree session look identical to a normal checkout, especially while agent tools were already operating under .claude/worktrees. The server now returns explicit worktree metadata from the session launch intent, and the desktop chip preserves the user-facing project and branch while appending the isolated worktree slug. Constraint: CLI worktree branches are internal implementation details and should not replace the user-selected branch label. Rejected: Show only the actual worktree git branch | it would expose worktree-desktop-* internals and make the business branch harder to read. Confidence: high Scope-risk: narrow Directive: Keep normal checkout footer rendering unchanged; only add worktree identity when session metadata says isolation is enabled. Tested: bun test src/server/__tests__/sessions.test.ts --test-name-pattern git-info Tested: cd desktop && bun run test -- src/components/shared/ProjectContextChip.test.tsx Tested: cd desktop && bun run lint Tested: git diff --check