Desktop UI shows 'main' branch instead of worktree branch after EnterWorktree
Resolved 💬 3 comments Opened Apr 11, 2026 by burntcones Closed Apr 14, 2026
Bug
After entering a git worktree via EnterWorktree, the Desktop app UI continues to display the main repo's branch (e.g., main) instead of the worktree's branch (e.g., claude/loving-torvalds).
Steps to Reproduce
- Open Claude Code Desktop app in a git repo on
main - Use
EnterWorktreeto enter/create a worktree (e.g.,loving-torvalds) - Observe the branch indicator in the Desktop UI
Expected
UI shows the worktree branch: claude/loving-torvalds
Actual
UI still shows main (the branch of the original repo root).
Verification
CLI commands confirm the session is correctly operating in the worktree:
CWD: /Users/.../bc-retail-hub/.claude/worktrees/loving-torvalds
Branch: claude/loving-torvalds
Git dir: /Users/.../bc-retail-hub/.git/worktrees/loving-torvalds
Toplevel: /Users/.../bc-retail-hub/.claude/worktrees/loving-torvalds
All file operations and commits happen on the correct worktree branch — this is purely a UI display issue.
Environment
- Claude Code Desktop app (macOS)
- Darwin 25.3.0
- Git worktree created via
.claude/worktrees/
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗