Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When a new workspace is opened using a specific git worktree path, the system initially recognizes it as a distinct catalog. However, shortly after starting Plan mode, the worktree environment is incorrectly merged back into the base project. This causes the application to lose the worktree context and execute the plan against the base project instead of the intended worktree directory.
Steps to Reproduce
-
git worktree add ../worktree-my-project/issue_num branch
-
Copy the worktree path
-
Press Open Workspace with the worktree path, type the prompt and run Plan mode.
-
In the side bar, it will show a new catalog for the worktree
-
A few second later, the item will be merged to the base project, and it forgot the worktree and run the plan on the base project
Expected Behavior
The worktree agent should remain independent of the base project.
Operating System
MacOS
Version Information
Version: 3.2.16
VSCode Version: 1.105.1
Commit: 3e548838cf824b70851dd3ef27d0c6aae371b3f0
Date: 2026-04-28T21:07:47.682Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.4.0
Does this stop you from using Cursor
No - Cursor works, but with this issue