mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
The chat footer previously read git-info from the persisted session file and refreshed only on tab changes. Repository launches can update the active CLI cwd after the composer has already rendered, so the footer could keep showing an older selected branch even while the running model was operating in the correct checkout. Constraint: The active CLI process is the source of truth for a live session cwd Rejected: Derive the footer branch only from persisted session metadata | metadata can lag behind startup and does not prove the current running cwd Confidence: high Scope-risk: narrow Tested: bun test src/server/__tests__/sessions.test.ts --test-name-pattern "git-info should prefer" Tested: cd desktop && bun run lint Tested: git diff --check