Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On 3.17.8 (2026-08-20 harness/cloud-agent release), a LOCAL agent in a multi-root workspace cannot switch into a git worktree.
The agent harness — not the user — auto-calls cursor-app-control move_agent_to_root after git worktree add. It fails with:
Failed to move agent root: Cannot pull a multi-repo cloud agent into a single-folder workspace
This is not a cloud agent. It is a local chat over a 9-folder .code-workspace. New _resolveMultiRepoMigrationRepoTargets treats branchesByRepo unique-repo-count > 1 as a multi-repo cloud agent, then refuses a single-folder destination. Telemetry class: workspace_shape_mismatch. MCP returns Aborted; other tools in the same turn abort too.
Did not happen on the previous build. Same auto-worktree flow worked yesterday.
Related (different error, same area):
Steps to Reproduce
- Open a local multi-root workspace with ≥2 git repos (not Cloud Agent).
- Start a local Agent chat.
- Ask it to work in an isolated git worktree.
- Harness succeeds at
git worktree add, then auto-callsmove_agent_to_root({ rootPath: <worktree> }). - Toast + MCP Aborted.
Retrying with rootPaths (keep siblings, swap one folder for the worktree) also aborts in that turn.
Expected Behavior
Local multi-root is not a cloud agent. Auto move into an existing linked git worktree should only retarget cwd/workspace — no cloud-agent migration / branchesByRepo shape check.
isMultiRepo(branchesByRepo) must not classify a local multi-root workspace as a multi-repo cloud agent.
Screenshots / Screen Recordings

Operating System
Windows 10/11
Version Information
Version: 3.17.8
VSCode Version: 1.128.0
Commit: 2fdd31c9f33f7fbe501f2d57772dc5bf64b63620
Date: 2026-08-20T02:18:12.724Z
Layout: glass
Build Type: Stable
WSL2 Ubuntu 24.04.4 (workspace). Windows 11 10.0.26200.9168 (Cursor host).
For AI issues: which model did you use?
Grok 4.6
For AI issues: add Request ID with privacy disabled
ff1da3f7-cd33-4ece-84c9-0614cbcfc1eb
Additional Information
User never invokes move_agent_to_root. The agent worktree skill/harness does it automatically.
Worktree itself is fine (path exists, branch checked out, pnpm install succeeded). Only the root switch fails.
Same 3.17.8 bundle also says: “Worktree chats require a single-root workspace.” So even a successful multi-root rootPaths move would still be blocked from becoming a worktree chat. Two new rules collide.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor