[Bug] Claude confuses git worktree directories with main repository

Resolved 💬 3 comments Opened Oct 22, 2025 by qfennessy Closed Oct 26, 2025

Bug Description
Claude confuses work in a worktree with the original local git repo directory I see the issue - the error output shows you're running tests in
/Users/quentin/src/cocos-story-fix-pytest/apps/interviewer/, but I made my changes in
/Users/quentin/src/cocos-story/apps/interviewer. These are different worktree directories!

Let me verify the current working directory and check if the fixes need to be applied here:

⏺ Bash(pwd)
⎿ /Users/quentin/src/cocos-story/apps/interviewer

⏺ Bash(git worktree list)
⎿ /Users/quentin/src/cocos-story 212fa1fc [develop]
/Users/quentin/src/cocos-story-actions bda0487b [actions]
/Users/quentin/src/cocos-story-adk-decision 8f1d93f3 [adk-decision]
… +71 lines (ctrl+o to expand)

⏺ I see! You have multiple git worktrees. The test errors are from /Users/quentin/src/cocos-story-fix-pytest/ (the fix-pytest
branch worktree), but I made my fixes in /Users/quentin/src/cocos-story/ (the develop branch).

Let me apply the same fixes to the correct worktree directory:

Environment Info

  • Platform: darwin
  • Terminal: windsurf
  • Version: 2.0.25
  • Feedback ID: 86e511a6-ce9d-4eb9-aa16-37ebd4e00f36

Errors

[]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗