Frequently stuck at "planning next moves" or "setting up environment"

I’m new after attempted to migrate from claude but I just can’t work now since the migration

  1. New agent chats (local folder remote-control) get stuck for ages ‘setting up environment’ waiting for worker. I tried killing all, restarting etc.
  2. All agents are working and then suddently all stop with ‘planning next moves’

I generally have about 10 agents, 4-6 working at any time, a few sharing same folder and repos (cockpit) but most across diff folders/projects. no laptop resource issues etc. No network issues. latest os, tried restarts.

Pretty frustrating because claude works so well on desktop, concurrent sessions and remote-control but I wanted to switch to using grok.

sometimes the chat finally ends with [unavailable] HTTP 502 Request ID: 9829c176-879d-4ac8-b6f0-c38f799046d2

Separately, any timeline on remote-control surviving a locked screen with a background process like claude uses

Extra details

MacOs 26.5.2 (25F84)
Cursor v 3.16.17

I have a debugging-data zip file from cursor if support can dm me so I can send it.

main.log for the last hour or so while it’s been stuck

2026-08-15 20:09:32.838 [info] [RendererPing] enabled (intervalMs=5000, blockThresholdMs=15000, stacks=true)
2026-08-15 20:09:32.843 [info] updateURL https://api2.cursor.sh/updates/api/update/darwin-arm64/cursor/3.16.17/e6a7993c7f63f41097db606a95bc9bd30df3b3f817963a37b6066b5127380fd2/stable
2026-08-15 20:09:32.845 [info] update#setState idle
2026-08-15 20:09:32.845 [info] [UpdateSupervisor] Cached gate startup (enabled=true)
2026-08-15 20:09:33.409 [info] [LocalAgentStorage] Scanned 11 recent databases (skipped 0 old), found 20 agent headers, deduped to 20
2026-08-15 20:09:33.414 [info] [Tray] getMacOSIconPath: hasNotifications: false
2026-08-15 20:09:33.422 [info] [Tray] getMacOSIconPath: hasNotifications: false
2026-08-15 20:09:37.123 [info] [PowerMainService] Started wakelock id=0 owner=window:1 reason=“remote-control-keep-awake” activeCount=1
2026-08-15 20:09:46.456 [info] [CursorProclistService] Config enabled feature (subsample every 10s; memoryPressureMonitorEnabled=true)
2026-08-15 20:10:01.533 [info] update#setState checking for updates
2026-08-15 20:10:03.651 [info] UpdateService onUpdateNotAvailable()
2026-08-15 20:10:03.651 [info] update#setState idle
2026-08-15 20:10:39.593 [info] Extension host with pid 92607 exited with code: 0, signal: unknown.
2026-08-15 20:10:58.749 [info] Extension host with pid 92806 exited with code: 0, signal: unknown.
2026-08-15 20:11:00.213 [info] [Tray] getMacOSIconPath: hasNotifications: true
2026-08-15 20:11:36.640 [info] Extension host with pid 92516 exited with code: 0, signal: unknown.
2026-08-15 20:11:53.821 [info] Extension host with pid 93150 exited with code: 0, signal: unknown.
2026-08-15 20:12:21.769 [info] [Tray] getMacOSIconPath: hasNotifications: false
2026-08-15 20:12:39.261 [info] Extension host with pid 93414 exited with code: 0, signal: unknown.
2026-08-15 20:13:35.587 [info] Extension host with pid 91920 exited with code: 0, signal: unknown.
2026-08-15 20:13:36.497 [info] Extension host with pid 93401 exited with code: 0, signal: unknown.
2026-08-15 20:14:44.864 [info] Extension host with pid 94023 exited with code: 0, signal: unknown.
2026-08-15 20:15:47.790 [info] Extension host with pid 94172 exited with code: 0, signal: unknown.
2026-08-15 20:15:53.449 [info] Extension host with pid 94477 exited with code: 0, signal: unknown.
2026-08-15 20:17:16.080 [info] [Tray] getMacOSIconPath: hasNotifications: true
2026-08-15 20:17:47.547 [info] Extension host with pid 94914 exited with code: 0, signal: unknown.
2026-08-15 20:17:50.887 [info] Extension host with pid 95036 exited with code: 0, signal: unknown.
2026-08-15 20:22:16.914 [info] [Tray] getMacOSIconPath: hasNotifications: false
2026-08-15 20:23:16.809 [info] Extension host with pid 96861 exited with code: 0, signal: unknown.
2026-08-15 20:24:57.767 [info] Extension host with pid 93651 exited with code: 0, signal: unknown.
2026-08-15 20:24:59.900 [info] Extension host with pid 97334 exited with code: 0, signal: unknown.
2026-08-15 20:33:17.974 [info] [Tray] getMacOSIconPath: hasNotifications: true
2026-08-15 20:40:48.171 [info] [Tray] getMacOSIconPath: hasNotifications: false
2026-08-15 20:54:57.709 [info] Extension host with pid 91707 exited with code: 0, signal: unknown.
2026-08-15 21:04:10.650 [info] update#setState checking for updates
2026-08-15 21:04:11.098 [info] UpdateService onUpdateNotAvailable()
2026-08-15 21:04:11.099 [info] update#setState idle
2026-08-15 21:19:57.720 [info] Extension host with pid 97393 exited with code: 0, signal: unknown.
2026-08-15 21:44:14.678 [info] Extension host with pid 10925 exited with code: 0, signal: unknown.
2026-08-15 21:56:37.932 [info] Extension host with pid 13585 exited with code: 0, signal: unknown.
2026-08-15 21:57:52.579 [info] update#setState checking for updates
2026-08-15 21:57:56.987 [info] UpdateService onUpdateNotAvailable()
2026-08-15 21:57:56.987 [info] update#setState idle

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Editor, Tab & Chat (autocomplete, Composer, in-editor agent)
  • Terminal & commands
  • Models, pricing & API keys (availability, Auto/Max, BYOK/Bedrock)
  • MCP & tools
  • Cloud Agents & Automations (cursor.com/agents, scheduled/event)
  • BugBot & Code Review
  • Cursor CLI
  • Cursor Mobile
  • Remote (SSH / Dev Containers / WSL)
  • Account, billing & login
  • Something else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Found the problem. It’s all to do with remote-control sessions. Is fine if local. Seems back to claude then unless anyone from cursor can say a fix is coming soon

Hi @thomasr789 Sorry for the frustration here. Thanks for the detailed write-up, and your follow-up is right: this is specific to Remote Control, not local agents.

On current builds only one local worker can register per machine. Whichever folder registers first takes it, and agents started from any other folder wait on a worker that never arrives. That matches what you’re seeing: the agents sharing your cockpit folder keep working, the ones in separate projects hang. It isn’t anything you misconfigured, and restarting won’t clear it. This is an issue we’re tracking, and the “planning next moves” stalls look like the same root, since Remote Control chats route through that one worker connection.

Worth trying in the meantime: instead of a separate window per project, add the folders to a single Cursor window (File → Add Folder to Workspace). One window registers one worker covering all of its folders, which gets around the limit. Failing that, fully quit Cursor, run pkill -f cursor-agent-worker, and reopen only the project you want remote-controlled, using local agents elsewhere.

On the locked screen: Keep This Computer Awake under Settings → Agents → Remote Control holds a wake assertion while plugged in, so a locked screen or dark display is fine. It won’t survive a closed lid, manual sleep, or a switch to battery, and the desktop app does need to stay running since there’s no fully headless mode today.

We’ll follow up if we need the debug info!

Thanks for the reply

  1. The keep awake doesn’t seem to work properly. I used caffeinate -d built into macs and it’s fine now.
  2. When are you extending this to support more than one remote-control session?
  3. In multi tasks - I also get the occasional task stuck and stop button that is inline doesn’t work at all on it. Different issue but just an fyi.