Cursor Agent download times out after 120s and repeatedly restarts, wasting bandwidth

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The built-in cursor-agent-worker repeatedly downloads the same approximately 180 MB Cursor Agent package, aborts after exactly 120 seconds, and retries from the beginning. Multiple workspace extension hosts perform this independently.

This happened with Cursor Agent 2026.10.22-27dcf5f on macOS Apple Silicon, using Cursor IDE 3.27.14. The connection was making progress, but could not complete the package within two minutes.

Across the available Cursor Agent Worker logs, 161 download-start entries and 155 AbortError failure entries were recorded on 2026-10-25; 485 download-start entries and 476 AbortError failure entries were recorded on 2026-10-26 as of the investigation. These are log-entry counts, not a byte measurement. Exact total bandwidth attributable to these attempts is unknown.

Steps to Reproduce

Observed trigger / suggested reproduction:

  1. Start Cursor with no successful cached installation of the required Cursor Agent version.
  2. Open two project workspaces so each has an extension host running cursor-agent-worker.
  3. Use a connection that cannot finish the approximately 180 MB package within 120 seconds (in my environment downloads.cursor.com was routed through a local proxy).
  4. Leave Cursor running and inspect the Cursor Agent Worker output logs.
  5. Observe “Downloading Cursor Agent 2026.10.22-27dcf5f”, then AbortError about 120 seconds later, followed by new full download attempts in subsequent reconciliation cycles.

A separate complete download of the same official archive succeeded in approximately 161 seconds.

Expected Behavior

A download that is still making progress should be allowed to finish, or the timeout should be configurable / based on inactivity. Failed downloads should resume rather than restart from zero. Concurrent workspace hosts should share one download, and repeated failures should use bounded retries/backoff with a visible error.

Operating System

MacOS

Version Information

Cursor IDE: 3.27.14
OS: macOS 27.0.1 (26A434), Apple Silicon / darwin-arm64
Affected built-in component: cursor-agent-worker
Cursor Agent package: 2026.10.22-27dcf5f
Observed on: 2026-10-25 and 2026-10-26 (UTC+8)

Additional Information

Evidence from the installed cursor-agent-worker/dist/main.js:

  • The download timeout is hard-coded as RDe = 12e4 (120000 ms).
  • The downloader uses an AbortController with setTimeout(…abort…, timeout), awaits response.arrayBuffer(), and only writes the archive after the entire response has completed. No Range/resume logic was present in this download function.
  • A periodic reconciliation timer is set to SGe = 6e5 (10 minutes).

Representative log excerpt from one workspace (2026-10-26, UTC+8):

11:32:25.640 Downloading Cursor Agent 2026.10.22-27dcf5f
11:34:25.646 Agent CLI prefetch failed: AbortError: This operation was aborted
11:34:26.961 Downloading Cursor Agent 2026.10.22-27dcf5f
11:36:26.979 Activation failed: AbortError: This operation was aborted
11:56:27.993 Downloading Cursor Agent 2026.10.22-27dcf5f
11:58:28.002 Agent CLI prefetch failed: AbortError: This operation was aborted
11:58:29.638 Downloading Cursor Agent 2026.10.22-27dcf5f
12:00:29.649 Periodic gate reconcile failed: AbortError: This operation was aborted

Workaround verified on 2026-10-26:
I completed a separate download of the matching official archive (180412627 bytes), verified that cursor-agent --version returned 2026.10.22-27dcf5f, and placed its extracted contents into the standard cursor-agent-worker agent-cli version cache. No installed Cursor application code was modified.

Both workspaces then logged success:

20:15:26.926 Using cached Cursor Agent 2026.10.22-27dcf5f
20:15:29.652 Started daemon [workspace A]
20:16:28.871 Using cached Cursor Agent 2026.10.22-27dcf5f
20:16:29.649 Started daemon [workspace B]

The repeated downloads stopped; no downloads.cursor.com connections remained at that check.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Yuan729, you’ve read the code correctly. The agent worker gives the whole agent package a fixed two-minute window, doesn’t resume, and each workspace retries on its own every ten minutes, so on a slower or proxied link it never finishes. That limit isn’t configurable today, and I’ve passed this to the team.

Your workaround is the right one for now. The catch is that it only lasts until a new agent build is published, and then the downloads start again. A more durable option is to point the worker at a CLI you install yourself:

  1. Run curl https://cursor.com/install -fsS | bash (the standard installer has no two-minute limit).
  2. Add export CURSOR_AGENT_WORKER_CLI_PATH="$HOME/.local/bin/cursor-agent" to ~/.zshrc.
  3. Fully quit and reopen Cursor.

The worker should then use that binary and skip the download entirely. If the downloads continue when you open Cursor from the Dock, try launching it from a terminal once to check whether the variable is being picked up. It won’t update that binary for you, so run cursor-agent update now and then to stay current.