Remote SSH Agent hangs before opening the model stream (Taking longer than expected), still on 3.23.23

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Remote SSH Agent gets stuck on “Planning next moves” / “Taking longer than expected”. The remote extension host becomes UNRESPONSIVE before it ever opens the model stream. A brand-new chat with conversationLength 1 fails the same way. Upgrading from 3.21.18 to 3.23.23 did not fix it. Local windows on the same Mac are fine.

Steps to Reproduce

  1. Open a project over Remote SSH to a shared Linux login node.
  2. Set cursorAgentHost.remoteInferenceRoute to always (user settings and remote Machine settings), then Reload Window.
  3. Start a new Agent chat (not a long thread) and send a short message, model grok-4.7.
  4. UI stays on Planning next moves / Taking longer than expected for 40s+.

Logs for failed turns: Starting stream request, then never Initiating stream connect to agentn.global.api5.cursor.sh. No first token received within 32s, then agent.turn.simulated_thinking_timeout at 40s. Also Extension host became UNRESPONSIVE with extensionHostKind Remote.

Expected Behavior

Agent in a Remote SSH window should start streaming within a few seconds, the same as a local window. The remote extension host should open the model stream instead of hanging before the connect is even logged.

Operating System

MacOS

Version Information

IDE:
Version: 3.23.23
Also reproduced earlier the same day on 3.21.18
Remote cursor-server product version 3.23.23 (commit 2dac2428994fe34f12658d9ecad1541b98db2c00)
OS: macOS client, Linux remote (shared login node, load average about 13-18)

For AI issues: which model did you use?

grok-4.7

For AI issues: add Request ID with privacy disabled

6db2c0c7-ea34-4434-b736-52ce0d366de0 (new chat, conversationLength 1)
55324704-11d9-4cfc-a22e-a916fa0c3012 (retry of that new chat)
4eaa159f-6ddc-4cdf-a474-1571b02ba95b (older chat)

Additional Information

From the remote host, agent.api5.cursor.sh and agentn.global.api5.cursor.sh resolve and return HTTP 200 in under a second. api5.cursor.sh is NXDOMAIN from both the Mac and the remote host (no DNS record), so this is not a missing hosts entry.
This started after the cursor_agent_host change. Before that, Agent in this same SSH window was fast. Restarting the remote extension host does not keep it from hanging again. Successful turns on the same window still take 4-8s to first token.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @simonyyyyyyyyyyy, thanks for the detailed report and the request IDs.

The three request IDs you shared all came from a window that was still running 3.21.18. Windows that were open before an update keep running the old version until Cursor is fully quit and reopened, so the first thing to confirm is that the SSH window itself is on 3.23.23. That version includes improvements for this, and it’s an issue we’re tracking.

In the meantime, the quickest way to keep working is the Agents Window (Cmd+Option+N, or the “Open Agents Window” button in the title bar). It runs the same prompts against the same remote workspace, but it doesn’t go through the step that gets stuck when a file tab is focused, so it should get you an answer while we look into the SSH window. If it also hangs there, let me know, since that tells us something different about the remote host.

If you’d rather stay in the regular editor window:

  1. Fully quit Cursor (Cmd+Q), reopen it, reconnect to the login node, and check that Help > About in that SSH window shows 3.23.23.
  2. If it still gets stuck, close the open editor tabs in the SSH window before sending. That’s a known workaround.
  3. Since the login node is heavily loaded, disabling any extensions you don’t need on the remote side can also help.

One more thing: the cursorAgentHost.remoteInferenceRoute setting isn’t related to this, so I’d remove it from your user settings and the remote Machine settings and leave it at the default.

If it still hangs on 3.23.23 after a full restart, please send:

  • The request ID of a message that got stuck on 3.23.23.
  • The output of “Capture and Send Debugging Data” from the Command Palette, run while it’s stuck. If it can’t upload, it will save a zip to your Desktop that you can send me in a direct message.
  • The logs from the login node for that session, from ~/.cursor-server/data/logs/ (a zip is fine).