Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On Cursor 3.31.15 (macOS arm64), opening Cursor automatically spawns 34–36 detached cursor-agent background worker processes (shown as node in macOS Activity Monitor), one for every historical repository/workspace I have ever opened.
Each process consumes ~154 MB of RAM (~5.5 GB total on an 18 GB Mac), pushing memory pressure into yellow and swap usage close to 7 GB. Worse:
- All processes are detached (
PPID = 1) and survive after completely quitting Cursor. - They still spawn even after disabling Remote Control in Cursor Settings, disabling “Enable My Machines” and “Enable Self-hosted Machines” in the Cloud Agents dashboard, and disabling Agent Window Type (Beta).
- Even after killing all workers and wiping
~/Library/Application Support/Cursor/User/globalStorage/anysphere.cursor-agent-worker/cursor-agent-worker-*andworker-data/, reopening Cursor immediately respawns 34 workers within seconds.
Steps to Reproduce
- In the Cursor web dashboard (Cloud Agents), verify that both Enable Self-hosted Machines and Enable My Machines are OFF.
- In Cursor desktop settings, turn Remote Control OFF (and disable Beta Agent Window Type).
- Quit Cursor completely and kill all existing workers (
pkill -f 'anysphere.cursor-agent-worker'). - Optionally delete persisted state under
~/Library/Application Support/Cursor/User/globalStorage/anysphere.cursor-agent-worker/(cursor-agent-worker-*andworker-data/). - Reopen Cursor.
Expected Behavior
- When Remote Control / My Machines is disabled, anysphere.cursor-agent-worker should not spawn any background worker processes (and should terminate existing ones).
- Even when enabled, Cursor should never unconditionally launch a separate ~154 MB daemon for every historical workspace with no concurrency/count cap or idle eviction, nor leave dozens of orphaned daemons running after Cursor exits.
Operating System
MacOS
Version Information
Version: 3.31.15
VS Code Extension API: 1.128.0
Commit: 3eb8c13390837371c7c2f2013dc57fdbc802c750
Date: 2026-11-20T19:25:18.309Z
Layout: Agent Window (Molten)
Build Type: Stable
Release Track: Default
Electron: 43.8.9
Chromium: 150.0.7871.250
Node.js: 24.22.1
V8: 15.0.245.31-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0
Additional Information
Inspecting the bundled anysphere.cursor-agent-worker extension (extensions/cursor-agent-worker/dist/main.js) and its output logs reveals two likely root causes:
- The gate function checks
remoteControlEnabled === true || checkFeatureGate("internal_cloud_project_remote_control"). Because of the||fallback, the feature gate appears to override the user’s explicit opt-out. - When fetching
remoteControlEnabledtimes out (Failed to readremoteControlEnabledsetting; retaining current worker state and retrying:ConnectError: [unavailable] HTTP/2 session not established after 20000 ms), existing workers are kept alive indefinitely. - On startup,
restartOfflineWorkersrestarts all recorded workspaces (concurrency 4) with no upper bound on the number of active worker daemons.
Does this stop you from using Cursor
Yes - Cursor is unusable