Worktree selection always creates new branch instead of using selected one
Resolved 💬 2 comments Opened Feb 25, 2026 by niravani Closed Mar 26, 2026
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 selecting an existing worktree/branch from the Claude Code UI, a new worktree and branch is created instead of opening the selected one. Expected behavior is that Claude Code opens in the selected worktree on the correct branch.
What Should Happen?
Claude should open the select branch and worktree
Error Messages/Logs
Steps to Reproduce
Open Claude Code
In the worktree/branch selector, select an existing worktree (e.g. claude/exciting-jennings)
Start a new conversation
Observe the active branch inside the conversation (e.g. run git branch)
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗