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;
originalFileStates726,newlyCreatedFiles477) 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,
ensureWorkspaceTransportReadytook 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_AllAgentChangesFromConversationStatereads every tracked file viaComposerUtilsService.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-transportpingthat 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:
- Remote-SSH window over a high-latency link (mine: ProxyJump + nested VPN, ~330 ms RTT to the jump host).
- In an Agent chat, have the Agent write a file outside the workspace.
- Replace that path on the server with a large binary (~100 MB+).
- 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