Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Title: cursor-app-control MCP tool move_agent_to_root hangs indefinitely (never returns)
Summary: Calling the move_agent_to_root MCP tool from an agent consistently hangs and never returns. Two separate invocations each ran 230s+ with no response and had to be manually interrupted.
Environment:
OS: macOS (darwin 25.5.0)
Repo: git worktree-based setup
Source workspace: /Users/galkeren/Dev/matrix (branch CTD-8634/feature/fb-paid-arr)
Target root: /Users/galkeren/.cursor/worktrees/matrix/ctd8619 (existing worktree, branch kereg/feature/CTD-8619-conversion-enhanced-monitoring)
Steps to reproduce:
From an agent in workspace A, call move_agent_to_root with rootPath pointing to an existing git worktree.
Tool never returns.
Observed: Call blocks indefinitely (>230s), no error, no completion. Expected: Agent root switches to the target worktree and the tool returns promptly.
Diagnostics ruled out (target worktree was healthy):
Branch exists on origin (git ls-remote confirms it) — so it’s not the “Remote branch not found on origin” path.
Working tree clean, ahead 1 / behind 0 — ff-merge would be a no-op.
No *.lock files in the worktree’s git dir.
Steps to Reproduce
Steps to reproduce:
From an agent in workspace A, call move_agent_to_root with rootPath pointing to an existing git worktree.
Tool never returns.
Expected Behavior
Agent to move to requested worktree and not hang
Operating System
MacOS
Version Information
Version: 3.6.31 (Universal)
VS Code Extension API: 1.105.1
Commit: 81fcf2931d7687b4ff3f3017858d0c6dee7e2a60
Date: 2026-05-31T17:46:29.630Z
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
xterm.js: 6.1.0-beta.220
OS: Darwin arm64 25.5.0
For AI issues: which model did you use?
Opus 4.8 Medium
For AI issues: add Request ID with privacy disabled
75511444-a2ed-4d19-9345-e6fbb94c981f
Does this stop you from using Cursor
No - Cursor works, but with this issue