Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
when the agent use the move_agent_to_root mcp to move from one git worktree to another git worktree of the same repo, instead of resulting in the agent in just move to the another worktree, it’s resulting in the agent actually move to the another worktree (as expected), but visually, the agent move to the base-repo workspace, with the cursor-managed-worktree icon near it.
as you can see in the picture below, the root of the agent is correct, its
~/weka_worktrees/643262…
but it’s not under 643262... workspace, it’s under wekapp which is the repo base-worktree
Steps to Reproduce
preconditions:
- repo base worktree (repo).
- two git worktrees of the repo (worktree1, worktree2).
open a new chat in worktree1.
agent use the move_agent_to_root mcp to worktree2
Expected Behavior
I expect to see the agent as regular session (without the worktree icon) under worktree2 workspace.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Version: 3.11.25
VS Code Extension API: 1.125.0
Commit: fc2563ec93d793fc275eef734405a4fdf8b47b20
Date: 2026-07-15T01:27:41.754Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0
Does this stop you from using Cursor
Yes - Cursor is unusable
