[Bug] Claude modifies main repository instead of worktree during --resume with -w flag

Open 💬 0 comments Opened Jun 25, 2026 by ScreamZ

Bug Description
I started from a conversation that I made a /branch to which I opened another terminal and made a --resume on this new branch as well as a -w. So it created me a worktree, but clauded to work on the main repo in a gentle polluting my main three.

Worktree should be contained and security should avoid this bug

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.191
  • Feedback ID: a9f0eb2e-f2af-40a2-817e-b6707fa550ee

View original on GitHub ↗