Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On macOS, Cursor does not stay closed. After I quit the app (File → Exit / Cmd+Q) or close workspace windows, Cursor comes back within seconds to ~1 minute — either as a new process or with new workspace windows opening again.
This does not look like a macOS LaunchAgent/login-item auto-start (no Cursor LaunchAgent found). Logs instead show rapid process restarts and internal window/workspace reopening tied to active Agent sessions.
Relevant local signals from logs (~Jul 30, 2026 19:47–19:53):
- Multiple new log sessions within minutes: 20260730T195009, 20260730T195029, 20260730T195144
- Lifecycle shutdown reason 2 (app quit) followed by a new process ~7–20s later
- Lifecycle shutdown reason 1 (window close only) without full quit, then new windows/process later
- Active agent-loop wakelock: composerId b1c3b38c-42e1-4f82-b5ff-fb973d687a82
- remote-control-keep-awake wakelock enabled (cursor/glassRemoteControlKeepAwakeWhilePluggedIn = true)
- cursor-agent-worker repeatedly spawning for workspace multimodal-annotation-platform, exiting code=1 with “The provided API key is invalid”
- Agent workspace migration / new window open (window1_wb2 for multimodal-annotation-platform at 19:53:13)
- Open Design integration present in child process env (OD_REQUIRE_DESKTOP_AUTH=1); desktop auth gate active around 19:47
No Cursor crash reports in Crashpad during this period.
Steps to Reproduce
- macOS, Cursor 3.13.25, Glass layout.
- Have one or more Agent conversations active (especially with agent-loop / background agent / Automations / Private Worker).
- Optional: remote-control keep-awake enabled; cursor-agent-worker configured for a project workspace.
- Quit Cursor via File → Exit (Cmd+Q), or close all workspace windows.
- Within seconds to ~1 minute, Cursor reopens — either full app relaunch (new logs/ session folder) or new workspace window (e.g. project workspace opens again while empty-window session exists).
Observed restart pattern from logs:
- 19:49:53 app quit (reason: 2)
- 19:50:10 new process start
- 19:50:23 app quit again
- 19:50:30 new process start
- 19:51:09 windows close (reason: 1)
- 19:51:44 new process start
Expected Behavior
After File → Exit / Cmd+Q, Cursor should fully terminate and not relaunch unless I explicitly open it again.
Closing a workspace window should not automatically reopen other workspace windows or relaunch the app.
Stopping/cancelling all running Agents should allow a clean quit without the UI coming back.
Operating System
MacOS
Version Information
Cursor IDE: 3.13.25 (darwin-universal, stable)
Electron: 40.10.3 (from crashpad annotation)
Channel: stable, layout: glass
macOS: darwin 25.2.0 (arm64)
For AI issues: which model did you use?
composer-2.5 (Agent mode)
For AI issues: add Request ID with privacy disabled
f9a7046a-279b-47e5-ab48-6e8dc12daba1
Additional Information
Log paths on macOS:
- ~/Library/Application Support/Cursor/logs//main.log
- ~/Library/Application Support/Cursor/logs//window*/renderer.log
(search: agent-loop, remote-control-keep-awake, lifecycle, reason: 1/2) - ~/Library/Application Support/Cursor/User/globalStorage/anysphere.cursor-agent-worker/*.log
Not found:
- Cursor LaunchAgent in ~/Library/LaunchAgents
- Cursor in macOS login items (separate app CursorUsageMenuBar is in login items, not Cursor.app)
Possibly related:
- glassRemoteControlKeepAwakeWhilePluggedIn = true
- cursor-agent-worker invalid API key loop for project workspace
- Open Design desktop auth (OD_REQUIRE_DESKTOP_AUTH=1 in Cursor helper processes)
- Agent workspace switching (move_agent_to_root / Glass tab migration) opening new windows after close
Happy to provide full log excerpts or run additional repro steps if needed.
Does this stop you from using Cursor
No - Cursor works, but with this issue