[BUG] Keep switching to worktree on my local although I specifically ask not to...creates extra steps to apply changes that are unneeded
Resolved 💬 3 comments Opened Mar 26, 2026 by fredericTethys Closed Mar 30, 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?
I keep trying to stay in my main directory on my local and claude keep switching to worktrees and unable to go back creatign extra steps to apply changes, consume token and waste time
What Should Happen?
just stay in the main directory to make changes on my local...the remote repo is what we use to track changes and releases
Error Messages/Logs
Steps to Reproduce
any time I create a session and start chatting it switch directory to worktree
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude 1.1.8629 (befdfc) 2026-03-24T22:13:01.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗