Cursor SDK: long Opus 5.5 local runs end mid-turn after file reads (\"[canceled] This operation was aborted\", \"repeated resume attempts made no progress\")

Where does the bug appear (feature/product)?

Cursor SDK

Describe the Bug

Long local runs of claude-opus-5-5 end 7 to 15 minutes in, right after file reads, without a client cancel. Other runs go silent for minutes and then carry on. We’ve seen two error texts.

A. [unknown] [canceled] This operation was aborted (2026-10-04, effort=xhigh, context=1m, fast=true). The client sent no cancel: its only calls for these agents were agent.open, run.start and, well after the abort, agent.close. No other Cursor run from this machine was active at those moments.

Run (UTC) Ran for Before the abort Request ID
17:34:30 → 17:49:32 15.0 min read the same two PNG files at 17:46:35 and again at 17:48:13, no completion event for either; aborted 77 s later 19c2ee4e-d757-4e7e-af57-19257f5ad2eb
18:07:50 → 18:15:24 7.6 min three file reads completed at 18:12:39, then 165 s with no event 86c4ab29-9af8-4b3f-8a47-3f8a6c2816d8
18:15:48 → 18:26:37 10.8 min two file reads completed at 18:26:06, then 30 s with no event 6edebb07-c98b-4b0e-8688-4da3d64cd9cc

Four other runs that day went silent with no tool running, then finished:

Silent gap (UTC) Length After Request ID
around 02:22 265 s – b3b56a87-5602-4080-b056-5033436ef38e
from 16:59:59 240 s assistant text, no tool call de534a77-da7d-4aa7-b32b-aac0ee6ed907
from 17:17:55 150 s an edit tool call completed 2218dc6c-ca53-42b0-88a5-da783487a8a6
from 17:54:31 218 s a shell tool call completed 2a566099-9df3-4263-ad48-3cc9172d2cbb

B. Agent turn stopped after repeated resume attempts made no progress (2026-10-05, effort=high, context=1m, fast=true, max mode on). The task was to read six text files of about 296 KB each, in order, then answer. The model read each file in chunks, one model step per chunk. For part2.txt the steps started 15 to 20 s apart (21:12:49 → 21:13:39 UTC); by part6.txt they were about 70 s apart (21:17:28, 21:18:43, 21:19:50). At 21:20:37 the run stopped at about 387K context tokens (request d33c41ce-a4e9-4de0-beea-63f6bfdc8607). The same task passed 47 minutes later in 90 s, using about 473K of 1M (request 9e0c4926-b9ec-4e00-8bbb-9ee4f1452a8d).

In the same window, a second machine ended the same task at part 3 with error A, and Cursor CLI 2026.10.01 on another machine got error B at 20:29 UTC and [unavailable] PING timed out at 20:38 and 20:40 UTC. We have no request IDs for those.

The runs use the SDK’s default local store, and neither error text has a SQLite message like the one in @cursor/sdk 1.0.35 + Grok 4.6 high: isolated no-tool runs drop or die with [internal] unable to open database file (2026-10-02).

Steps to Reproduce

Not every time.

  • A: long agentic local runs (10+ minutes, 100+ tool calls) on claude-opus-5-5, context=1m, created with Agent.create({ local: { cwd } }) and driven by send() and wait() (here through T3 Code’s Cursor provider).
  • B: happened while the backend was slow, roughly 20:30 to 21:45 UTC on 2026-10-05. Put six text files of about 300 KB each in the workspace and ask the agent to read all of them in order and answer a question that needs all six. Max mode was on: the SDK doesn’t set it for local runs yet (Grok-4.7 run rejects advertised context 500k), so we set it in-process, and the checkpoints show 1,000,000.

Expected Behavior

The backend doesn’t end an active run without saying why, and a slow backend makes a run slower rather than failing it. If a run has to stop, RunError.code says why (timeout, capacity, stalled model stream, no progress), so the client can retry or resume from the checkpoint.

Operating System

Linux

Version Information

@cursor/sdk 1.0.31, bundled in T3 Code nightly 0.0.46-nightly.20261004.2648 (Node 26.8.2), on NixOS 26.11. Cursor CLI 2026.10.01-e373342 for the CLI data point.

For AI issues: which model did you use?

claude-opus-5-5 (A: effort=xhigh; B: effort=high; both context=1m, fast=true)

For AI issues: add Request ID with privacy disabled

Privacy mode was on for all of these, so you may not be able to look them up.

  • A, aborted: 19c2ee4e-d757-4e7e-af57-19257f5ad2eb, 86c4ab29-9af8-4b3f-8a47-3f8a6c2816d8, 6edebb07-c98b-4b0e-8688-4da3d64cd9cc
  • A, stalled then finished: b3b56a87-5602-4080-b056-5033436ef38e, de534a77-da7d-4aa7-b32b-aac0ee6ed907, 2218dc6c-ca53-42b0-88a5-da783487a8a6, 2a566099-9df3-4263-ad48-3cc9172d2cbb
  • B, failed: d33c41ce-a4e9-4de0-beea-63f6bfdc8607; same task passing later: 9e0c4926-b9ec-4e00-8bbb-9ee4f1452a8d

Additional Information

What ends a run with [canceled] on the server? For B, what do the “resume attempts” resume, and what counts as progress? Is there an idle, step-time or context-size limit a client should plan for? A delegated run loses 10+ minutes of work when it’s aborted this way.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the detailed breakdown with timelines and the request ID. That makes it much easier to analyze.

Short version: these completions are not a server-side run cancellation. In local mode, the client monitors the connection itself. If nothing comes from the server for about 30 seconds, including periodic heartbeats, it aborts the current attempt and resumes from the last checkpoint. That explains both symptoms.

On your questions:

  • [canceled] This operation was aborted: in 1.0.31, this stall-abort used a small retry budget that was meant for server errors, so after several resumes the run could end with the raw cancel text. In newer SDK versions, this is treated as a stalled connection. Retries continue longer, and RunError.code returns connection_stalled, so the client can tell this case apart and resume correctly.
  • “repeated resume attempts made no progress”: resume continues from the last checkpoint. “Progress” means a new checkpoint was saved, which happens when a step finishes. If two resumes in a row produce output but the connection drops again before anything is saved, the client stops so it doesn’t restart and charge again for the same work.
  • On limits: there isn’t an idle limit or context-size limit that would end the run. The main thing to plan around is about 30 seconds of silence on the connection.

From the data you shared, the likely root cause is pretty clear. In the failed run, the file reads were taking much longer round-trip times, and the step gaps grew from about 15 seconds to about 70 seconds. The same task later finished in 90 seconds. That points to a slow or overloaded path between the machines and our servers, not a model issue or a server-side limit.

What I’d suggest:

  • Update the bundled @cursor/sdk to 1.0.36. That version improves stall classification and adds a cap on stall duration.
  • Retry the task with the six files.
  • If it fails again, send the exact error text, RunError.code, the time in UTC, and whether anything else was active on the same network at the time, like other agents or uploads. With that, we can dig further.

Let me know how it goes on 1.0.36.