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 withAgent.create({ local: { cwd } })and driven bysend()andwait()(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