Glass + OS migrate: `move_agent_to_root` always Aborts; Open Folder broken; agent stuck on mangled `C:/…` root under Linux

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After moving from Windows → Linux (same machine / profile carry-over), an Agent chat cannot re-root into the real Linux project folder. Every call to move_agent_to_root returns:

Tool execution error. Aborted

There is no successful “Moved agent root…” result. The chat stays on a broken temp/Glass identity.

Also observed:

  1. Open Folder (and agent-driven open) does not migrate the existing chat onto the Linux tree.
  2. The stuck agent’s effective root looks like a mangled Windows path under the Linux home, roughly:
    • $HOME/<DriveLetter>:/<FormerWindowsProjectPath>
    • while the real checkout is $HOME/<LinuxProjectPath> (no drive letter).
  3. The stuck chat’s Cursor project dir is a tmp-<uuid> style folder under ~/.cursor/projects/, not the normal home-… slug for the Linux path.
  4. User storage still lists stale Windows workspace URIs next to the valid Linux file:// folder URI, including:
    • old file:///c%3A/... (and sometimes d%3A/...) project paths
    • old Glass multi-root entries under the Windows AppData glassMultiRootWorkspaces location
    • plus the correct Linux folder URI (present, but not what the stuck chat uses)

Git auth was a red herring. On a fresh Linux install, git fetch over HTTPS failed until the GitHub CLI browser login + gh auth setup-git. After fetch worked, move_agent_to_root still Aborted every time. So this is not “remote branch missing” / fetch failure.

Related threads (same family):

Steps to Reproduce

  1. On Windows, use Cursor with a normal folder workspace under a drive letter (e.g. C:\…\MyRepo), optionally also Glass multi-root / a .code-workspace under AppData glassMultiRootWorkspaces.
  2. Move or re-clone the same git repo on Linux under $HOME/… (Cursor settings/profile may sync or be copied).
  3. Open Cursor Glass on Linux. Resume or start an Agent chat that still belongs to the old Windows / tmp-* identity.
  4. From the agent, call move_agent_to_root with rootPath = the absolute Linux project path.
  5. Result: MCP Tool execution error. Aborted (repeatable).
  6. Try Open Folder on that same Linux path from the stuck context — the in-flight agent chat does not reattach.
  7. Workaround that works: open a new classic window on the Linux folder (cursor --classic <linux-path>) and start a new chat (handoff doc). The old chat cannot be moved.

Expected Behavior

  • move_agent_to_root to a readable local directory should succeed and continue the turn, or return a clear error (e.g. “open a new chat in workspace X”), not a bare Aborted.
  • After OS migrate, stale file:///c%3A/... (etc.) entries should not trap agents on mangled $HOME/<DriveLetter>:/… roots.
  • Open Folder / Open Workspace should be able to retarget an agent chat to a valid local folder without forcing a brand-new conversation.

Operating System

Linux

Version Information

Operating System

Linux (Fedora 44, KDE, Wayland)

Version

  • Cursor 3.27.12 (stable Linux rpm build)
  • CLI commit id: df132ffba90dfc15a12e6b8f020ba4e5d026c4b0
  • Mode: Glass (glassMode: true); classic window open works as workaround

Additional Information

  • Tool: cursor-app-control → move_agent_to_root (retried after successful git fetch).
  • Destination: normal git repo, main tracking origin/main, HTTPS fetch OK after GitHub CLI login.
  • open_resource with a file:// Linux folder URI only opens the OS file manager — does not migrate the agent root.
  • New window + new chat works; continuity of the same chat does not.
  • Report drafted from a live agent repro; paths anonymized.

Impact

Blocks “continue this chat after Windows→Linux migrate.” Forces handoff + new chat. Same class of pain as known Glass move_agent_to_root aborts, plus drive-letter / URI residue after OS change.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Leander_Kagermann, the bare “Aborted” is a side effect of how the move works. Cursor stops the chat’s current turn before moving it, so when the move itself fails and rolls back, that stopped turn is all the agent gets to see.

In your case the move gets past the git step now, then fails while carrying the conversation over to the new folder. The chat still points at its old Windows workspace, which is why it keeps landing on that odd C:/… path under your home folder. Opening the Linux folder doesn’t change that: Open Folder opens a workspace, but it doesn’t move an existing chat into it.

For now there’s no reliable way to keep the same chat. Starting a new chat in a window opened on the Linux folder, as you did, is the dependable route.

One thing that would help: while the move runs, a notification usually shows “Failed to move agent root:” followed by a reason. Could you paste that text, or a screenshot of it, the next time it happens?