Before submitting#
Area#
apps/web
Steps to reproduce#
In a long run it eventually gets this error
Expected behavior#
Agent keeps running until work is done
Actual behavior#

Error: RetriableError: [canceled] http/2 stream closed with error code CANCEL (0x8)
Impact#
Blocks work completely
Version or commit#
0.0.42 (719a76ca1dbf)
Environment#
macOs 26.6.1 (25G76)
Logs or stack traces#
ProviderAdapterRequestError: Provider adapter request failed (cursor) for session/prompt: Cursor reported a transport failure.
at Array.<anonymous> (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:146304:98)
at next (<anonymous>)
at sendTurn (Alpha)
at sendTurn (definition) (Alpha)
at processTurnStartRequested (Alpha)
at processTurnStartRequested (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:203752:36)
at processDomainEvent (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:204127:46)
at processDomainEvent (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:204076:29) {
[cause]: Error: Error: RetriableError: [canceled] http/2 stream closed with error code CANCEL (0x8)
at causePrettyError (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/claudeHistoryWorker-CAn1PawV.mjs:9188:17)
}
Screenshots, recordings, or supporting files#
No response
Workaround#
No workaround, but starts working for a while again if you continue
Triage#
Verdict: Valid bug. Keep open. Not a duplicate of #7830. That issue was Cursor leaking transport dumps as assistant text and T3 marking the turn completed. #10337 already fails those turns. This report is the leftover: the run still dies mid-work and the user has to Continue. Not a duplicate of #10480. That one is
RetriableError: [internal] Failed to run step, exceeded max retries(agent-loop). #11365 stopped labeling that class as a transport failure. This diagnostic is[canceled] http/2 stream closed … CANCEL (0x8), which is the transport class. Not already fixed on currentmain(53510d44e) or on the reporter’s0.0.42(719a76ca1). Same fail-the-turn path, no retry, no session recycle.Same reporter already left this exact string on #10480 a few minutes before filing this.
Area on the form is wrong: this is the Cursor ACP adapter (
apps/server), notapps/web. The web client is only showing the failed turn.What happens#
session/promptwith a normalend_turn, but the assistant text is only a transport dump:HTTP/2
CANCEL (0x8)is a stream reset on a long-lived Cursor backend request. Cursor’s interactive agent retries these internally. ACP leaks them asagent_message_chunkplus a successful prompt result. Cursor has acknowledged that error-channel leak (forum). #7830 already listed HTTP/2 CANCEL / stream-reset as part of this class.Error: RetriableError: …that is not[internal]as a transport failure. This string matches:sendTurnfails the turn. It does not retry and does not drop the session:That is why the user sees a hard stop instead of a fake completed answer, and why Continue works for a while: the next prompt often succeeds until the next cancel. On a long run that already used tools, this is the expected current behavior, not a missed matcher.
Related (do not close as these)#
[internal]max-retries, not HTTP/2 CANCEL[internal]onlysession/load. Still no replaySuggested fix#
Do not replay a long run that already used tools. #10337 was right to refuse that.
Two stacked workarounds, neither of which is on
mainyet:CANCEL (0x8)string in the regression test.A later “auto-Continue after recycle” (new turn, not a replay of the original prompt) is the piece that would match the expected behavior for mid-run cancels after tools. That is not in either open PR. Do not buffer-and-hide the leaked diagnostic; leave it visible.
Root cause stays upstream: Cursor ACP should return these as JSON-RPC errors, not assistant text.
Labels:
bugupstream(removeneeds-triage)