Windows: project registry double-registers every repo (picker path vs git-derived path), duplicating branch-changes cards
Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Jul 8, 2026 · closed Jul 8, 2026
Environment
- Claude Code desktop app on Windows 11 Enterprise (10.0.26200)
Bug
The projects map in ~/.claude.json is keyed by the raw path string. The folder picker registers C:\src\X (backslashes); the app's git layer registers C:/src/X (forward slashes), because git-for-Windows returns forward-slash paths (git rev-parse --show-toplevel, git worktree list). Every repo used on the machine ends up with both entries (verified on 6 different repos), and the UI renders the branch-vs-default-branch card once per entry - two identical +N -M | Commit changes rows for the same repo.
Verification
- The card's diff numbers exactly match
git diff master...HEAD(confirmed twice at different branch states). - Removing the duplicate key from
~/.claude.json(with every Claude process closed) does not stick - the app re-creates the forward-slash entry within seconds of the next launch. - The duplication survives: deleting sessions, app restarts, deleting and re-creating the local branch, and a full re-clone of the repository.
Expected
Normalize project keys (path separators + drive-letter case) before insert/lookup, or match keys separator-/case-insensitively on Windows.
3 Comments
<img width="817" height="245" alt="Image" src="https://github.com/user-attachments/assets/d0c5efcb-6669-45bd-b2cb-2711a1ef276b" />
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.