Unattended work impossible due to CLI failures

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Long Grok 4.7 agent turns die constantly with transport errors — [unavailable], [canceled] http/2 stream closed CANCEL (0x8), [deadline_exceeded] bidi_append_deadline_exceeded, Connection stalled, PING timed out.

Six killed turns in one day on a single task (Oct 3), plus more across Sep–Oct, forcing ~20 manual re-prompts/resumes per task.

Unattended work is impossible; every backend blip kills the turn because the ACP path never retries (enableAgentRetries: False, attempt: 0 in the agent’s own diagnostics).

Reproduces on both HTTP/1.1 (useHttp1ForAgent: true) and HTTP/2 default, direct connection to https://api2.cursor.sh / https://agentn.global.api5.cursor.sh, no proxy or VPN.

I only run Grok models (4.6/4.7), so all my failures are on the Grok lane. I can’t compare with other models.

Issue happening on both MacOS and Linux

Steps to Reproduce

  1. Run cursor-agent (or via ACP) with a Grok model (4.6/4.7).
  2. Start a multi-step, long-running agent task (15+ min turns, large context).
  3. Mid-turn the stream dies with one of the RetriableError variants above. Partial progress survives in checkpoints; resuming manually works until the next drop.

Expected Behavior

Transient transport failures should retry/resume from checkpoint automatically instead of ending the turn — or at minimum the ACP path should honor the same enableAgentRetries behavior as local SDK runs. There is currently no user-facing switch to enable it (no CLI flag, config key, or ACP field).

Operating System

MacOS
Linux

Version Information

CLI Version 2026.09.28-64d2043
OS linux (x64)
Model Grok 4.7 256K Extra High
Subscription Pro+

Also tried on MacOS, same issue, issue also happens on MacOS in an enterprise subscription.

For AI issues: which model did you use?

Grok 4.7, Grok 4.6

For AI issues: add Request ID with privacy disabled

Oct 5: c854ab43-6ccd-49a1-bbb0-bb40689c237a (CANCEL 0x8, 16:29 UTC), 0c206865-969a-46e3-a996-29a458f6ac41 (Unavailable, 16:13 UTC). Oct 3: 05dfd605-4ce8-4c86-a440-6afe695edd12 (Unavailable), 9dd84850-7e89-433e-bae2-964bc299e2cf + e6a826a2-a3cd-4e86-a032-5d15993a5373 (DeadlineExceeded), bb542b96-3627-4089-b42b-9f30f18c3f6f + 13b06c97-cba1-44e2-b627-de0069414e86 (Aborted/ECONNRESET), 1ac6fc0d-8dd1-4bdc-ad66-65f96558f7e4 (Canceled).

Additional Information

Client-side [AGENT_ERROR_DIAGNOSTICS] for every failure reads enableAgentRetries: False, attempt: 0, transportErrorRetries: 0, serverErrorRetries: 0 — zero retries attempted before THROW.

The Cursor status page lists only Grok-lane degradations across this whole period (Sep 21 Grok 4.6, Sep 22 Grok models, Sep 23 Grok 4.7, Sep 25/26/28/29 Grok Bot and xAI models, Oct 3 Grok Bot + Review Agents) — no incidents filed against other lanes while this has been happening.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @felipe_dbolt, thanks for the report and for including the request IDs.

You’re right about the retry gap. When Cursor runs through ACP, a dropped connection mid-turn ends the turn immediately, while the interactive CLI and headless mode reconnect and resume automatically. Long turns (roughly 10 minutes or more) are the most exposed, and this isn’t specific to Grok models. It’s a known issue we’re already tracking, and I’ve added your report to it.

In the meantime, for unattended work, running tasks through headless mode (cursor-agent -p "your prompt", plus --resume <chatId> to continue the same chat) gets you the automatic retries. Keeping individual turns shorter also reduces how often one gets cut off.