Failed to move agent root

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Failed to move agent root: Cannot pull a
multi-repo cloud agent into a single-folder
workspace => Stops the work

Steps to Reproduce

Chat with the agent, just triggers sometimes, I guess when it wants to use multi-agents. I just have a classical workspace with several repo folders.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.18.25 (Universal)
VS Code Extension API: 1.128.0
Commit: 280eca2911f1774689696e5f1efa5a4f97a87af0
Date: 2026-08-31T23:08:02.261Z
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.291
OS: Darwin arm64 25.6.0

For AI issues: which model did you use?

Grok 4.6 Extra F High Fast

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @angel-luis, thanks for the report!

That message shows up when the agent tries to switch the chat’s workspace root (for example after creating a git worktree) while the chat is open in a workspace that contains several folders or repos. Cursor currently treats that switch as a multi-repo move and rejects it, which interrupts the agent’s turn. This is a known issue we’re already tracking, and I’ve added your report to it.

Two things I would suggest to try working around it:

  1. Run the chat from a window with just the single repo you’re working in (File → Open Folder on that repo), rather than a multi-folder workspace.
  2. Or add a rule (Cursor Settings → Rules) telling the agent not to call move_agent_to_root and to run its commands from the target folder or worktree directory instead. The worktree itself works fine without the root switch.

Could you confirm whether the chat was open in a workspace with more than one folder or repo? That helps us make sure it’s the same case.

Yes, for this specific project, I’ve the root folder:

/my-project-workspace (just a folder with the VSC workspace file)

and inside that folder all the repos associated:

/my-project-workspace/frontend

/my-project-workspace/api

/my-project-workspace/server

etc.

I need to work with all the repos at the same time.

Then I will wait to get fixed, thank you.

Thanks for confirming, that’s the same case we’re tracking.

I’m having the exact same problem. I’ve had the same setup for months without any problems. Today I updated to the latest Cursor and now I can’t get any work done because this error keeps popping up.