Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On Cursor SSH Remote (Windows client to Linux host), cursor-agent-worker auto-prefetches the Agent CLI from the Cursor download CDN with a hardcoded 120-second timeout. The current linux x64 agent-cli-package.tar.gz is about 171 MiB. The worker fetches the whole archive into memory (arrayBuffer), does not resume, then aborts with AbortError and retries forever. Multiple extensionHost processes can retry in parallel.
On a ~500 KiB/s path (direct and HTTP proxy both measured), one complete download needs about 5-8 minutes, so every attempt fails at 120s after already transferring tens to ~170 MiB. This used about 2.1 GiB in about 6 hours.
The 120s timeout is in cursor-server 3.16.29 through 3.18.9. It got worse because the CLI tarball grew (extracted size ~220-250 MiB on older builds vs ~522 MiB for 2026.09.02-c22c1a3). There is no documented timeout or max-retry setting.
Steps to Reproduce
- Use Cursor 3.18.9 on Windows with Remote SSH to a Linux x64 host.
- Make sure the worker cache does not contain versions/BUILD_ID/cursor-agent
under ~/.cursor-server/data/User/globalStorage/anysphere.cursor-agent-worker/agent-cli/.local/share/cursor-agent/versions/ - Open a remote folder so cursor-agent-worker activates.
- Watch ~/.cursor-server/data/logs/SESSION/exthost*/anysphere.cursor-agent-worker/*.log
Observed:
- Resolving installer for linux/x64
- Downloading Cursor Agent 2026.09.02-c22c1a3
- exactly ~120s later: Agent CLI prefetch failed: AbortError: This operation was aborted
- repeats; leftover dirs versions/.tmp-2026.09.02-c22c1a3-*
- traffic to the CDN path lab/2026.09.02-c22c1a3/linux/x64/agent-cli-package.tar.gz
- HEAD Content-Length 179684142. Direct curl ~537 KiB/s. Worker needs ~1.4 MiB/s to finish in 120s.
Expected Behavior
Timeout should be long enough for a ~170 MiB package on a slow or proxied link, or be configurable. Support resume or streaming to disk. Cap retries instead of re-downloading the full object forever.
Operating System
Windows 10/11
Version Information
Cursor: 3.18.9
Commit: 2ba48ff3f7514cc4643c52ca9f7b3173d9b66130
Date: 2026-08-27
Client OS: Windows 11
Remote: Linux x64 (cursor-server same commit)
Agent CLI being fetched: 2026.09.02-c22c1a3
Additional Information
Log (exactly 120s):
2026-09-07 14:46:11.442 [info] [cursor-agent-worker] Downloading Cursor Agent 2026.09.02-c22c1a3
2026-09-07 14:48:11.456 [info] [cursor-agent-worker] Agent CLI prefetch failed: AbortError: This operation was aborted
Workaround: download the tarball with curl --max-time 900, extract into the worker versions/2026.09.02-c22c1a3 directory; worker then logs Using cached Cursor Agent. This is cursor-agent-worker prefetch on SSH Remote, not the standalone CLI installer.
Does this stop you from using Cursor
No - Cursor works, but with this issue