Remote SSH: Agent send fails with "Workspace Disconnected" and endless auto-retry; stale tracked 118 MB binary suspected of starving the transport health check (3.24.9)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In a Remote-SSH window, messages I sent from one long-lived Agent chat repeatedly failed with “Workspace Disconnected - Could not connect to the workspace” when sent within the first minutes after the workspace (re)connected. Cursor then retried by itself, killing and re-creating its SSH process each time, until I pressed Cancel (I never clicked retry). The window stayed connected between sends, and plain ssh from Terminal to the same host stayed up the whole time.
Observed:

  • The chat (~23.5k bubbles; originalFileStates 726, newlyCreatedFiles 477) tracked one file outside the workspace: …/.cursor-server/bin/linux-x64/<old-commit>/node, a 118 MB binary. An earlier Agent session in this chat had written to that path while I was troubleshooting the server; I later restored the original binary.
  • On the three failed sends, ensureWorkspaceTransportReady took 64.2 s, 21.6 s and 29.4 s. renderer.log: “Transport readiness soft deadline exceeded… hard deadline exceeded; management transport healthcheck is still pending”. The Remote-SSH log then shows “Abandoned connection reuse; falling back to a new connection” and “Terminating existing SSH process”.
  • During those waits composer.log shows error getting full content of file …/node (FILE_IS_BINARY).
  • After I renamed that binary on the server, reads of it fail instantly (FILE_NOT_FOUND) and sends work: readiness took 0.78 s and 0.77 s (sends ~4 min and ~84 s after connecting), a send ~8 s after the next reconnect passed immediately, and there were no watchdog events.
    Inferred from the app bundle (not verified on the wire):
  • ReviewChangesService.getResources_AllAgentChangesFromConversationState reads every tracked file via ComposerUtilsService.getFileContents, in parallel over the SSH tunnel. Reading the 118 MB binary probably streams much of it before the binary check rejects it, which would starve the management-transport ping that the readiness check (getRoundTripTime) relies on.
  • The auto-retry probably re-triggers the same read after each reconnect.
    Caveats: one machine, correlation only. The failures began after I restored the original binary and after the 3.23.23 → 3.24.9 auto-update, and I can’t separate the two. A start-up timing effect isn’t fully excluded, although after the rename even an early send passed.

Steps to Reproduce

Not independently reproduced; derived from the logs:

  1. Remote-SSH window over a high-latency link (mine: ProxyJump + nested VPN, ~330 ms RTT to the jump host).
  2. In an Agent chat, have the Agent write a file outside the workspace.
  3. Replace that path on the server with a large binary (~100 MB+).
  4. Reopen the window and send a message in that chat.

Expected Behavior

  • Tracked files that are binary, very large or outside the workspace are skipped (stat/size check before any read).
  • Bulk reads can’t starve the connection health check, and a busy-but-alive tunnel isn’t torn down.
  • Auto-retry doesn’t re-trigger the same heavy work in a loop.

Operating System

MacOS

Version Information

Version: 3.24.9 (stable)
VSCode Version: 1.128.0
Commit: cd6d2a1f2e56e9841f0ed9c7c24542087b4e69b0
Date: 2026-10-08T05:37:28.393Z
Electron: 42.10.0
OS: macOS 27.0.1 (26A434) arm64
Remote: Ubuntu 24.04.2 LTS x64, same server commit; previous version 3.23.23 (commit 2dac2428994fe34f12658d9ecad1541b98db2c00)

Additional Information

  • Request IDs of the three failed sends (they failed before reaching a model; Privacy Mode is on): 431b2063-9bee-447e-b65d-843817c3863a, 4bf8088b-e402-44f1-befa-9f12e4b30736, 3ad00da6-a7a5-42ba-8fe4-72149aa62e6b
  • Same failure with Claude and Grok models.
  • Workaround: rename the stale file on the server, or start a new chat.
  • composer.log also logs Error checking git status for auto-accepting diffs: [{}] on every window open.
  • Related: Remote-SSH repeatedly disconnected and Agents Window: after Remote SSH disconnect, agent dies silently with no reload/reconnect option
  • Redacted log excerpts (renderer, Remote-SSH, composer, per-request readiness spans) are in the first reply.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @wzzzl, thanks for the detailed report and the before/after timings.

Your reading of it lines up with what we see on our side. When a chat opens, and again after each send finishes (including a failed one), Cursor rechecks every file that chat has ever changed. That includes files outside the workspace, and a large binary at one of those paths can tie up the remote connection long enough for the connection check to give up. I’ve flagged this to the team.

Renaming the stale file, or continuing in a new chat, is the right workaround for now.

To help us pin it down, could you try this minimal version on the same host?

  1. Open the same remote host in the Agents Window and start a new chat.
  2. Ask the agent: “Create the file /tmp/cursor-repro.bin containing the word hello.”
  3. In a regular terminal on the server, run: head -c 150M /dev/urandom > /tmp/cursor-repro.bin
  4. In Cursor, run “Developer: Reload Window”.
  5. Open that same chat and send a short message within the first minute.

Does it fail with “Workspace Disconnected”? Then run rm /tmp/cursor-repro.bin, reload, and send again. Does it go through?

Please also let us know whether this was the Agents Window or a regular editor window, and post the log excerpts you mentioned when you get a chance.