[BUG] Desktop startup git branch selector misleading - defaults to main
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When starting a new session in Claude Code in the desktop app, the UI allows you to select a project and then offers a branch selector (and worktree option). The branch selector defaults to main even if there is a different branch checked out locally. once starting the session via a message, the startup process obviously calls git status and then updates the branch information in the session.
This default to main behaviour is confusing UX. It makes the user think they are going to be working on main branch and if they don't spot the subtle update of the branch information post message then there could be confusing outcomes.
What Should Happen?
Claude Code should probably call a git status for the project directory on project select and update the default branch information before the first message is sent. Either that or have a clearer message that main may not be the effective branch and then a much clearer message if the subsequent branch that is initialised is different from the one selected at startup.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code Desktop
- Start new session
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
n/a
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗