You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c11480f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(recovery): rebuild a dropped Run when nothing of the interrupted step ran on the host, and send a cut Run upload again
Only execs handed to a host tool need a result in history; the provider's
own answers (refusals, its runtime files, placeholders) no longer block the
completed-tool-results rebuild, anywhere in the Run. The interrupted pump
pass is judged on its own: its text, reasoning, announced calls and
provider-answered execs do not bar the rebuild, and its shown text goes to
the rebuilt Run to be continued. A host exec, a bridge or a stateful or
unknown frame in it still does. A new Run's request upload that the stream
cuts off is replay-safe unless Cursor's own refusal ended the stream.
Final retry-unsafe errors say to send "continue".
CB-10.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
### Fixed
27
27
28
28
- An early edit row no longer shows "Cursor did not finish this tool call." for a call that did finish. When Cursor ends an edit itself without a write (for example a string it could not find), the row now shows Cursor's own result, the one the model saw, and fails only if that result is an error. When another call of the step runs first, the row completes with a note that Cursor runs this call afterwards, and the call shows up again when it runs. A row still fails as unfinished when its Run ends without the call or its exec is refused. An edit Cursor fails after its permission-checked read, which opens no early row, now shows as a failed edit with Cursor's error instead of only the read. A turn rebuilt from OpenCode's history leaves these closed rows (empty input) out of the transcript.
29
+
- A Cursor connection that dies mid-turn no longer ends the turn with "Cursor Run sent no frames for 30000ms after visible output or stateful server activity; automatic retry unsafe" when nothing would run twice. After OpenCode's tool results reach Cursor and before Cursor saves a checkpoint, the turn is rebuilt from OpenCode's history even if the interrupted step had already streamed text or reasoning, announced its next tool call, or had the provider answer an exec itself (a read of the provider's own terminal records, a refusal). Before, any of those, or such a provider answer anywhere earlier in the Run, made the failure final. The rebuilt step is shown the text it already wrote so it continues instead of repeating it. A host tool started in the interrupted step, a call Cursor ran itself and stateful interactions still end the turn, and that error now says to send a message such as "continue". A new Run whose request upload is cut off ("Cursor initial Run request backpressure drain failed while opening the replacement Run; automatic retry unsafe") is sent again within the retry budget, since nothing was read from it, unless Cursor's own refusal ended the stream
29
30
- A shell command Cursor runs with a foreground window (most of them) now ends with its own exit code in OpenCode, not 0. The provider's wrapper printed the code for Cursor and then exited 0, so OpenCode stored every such command as a success, T3 and other clients showed no failure, and a turn rebuilt from OpenCode's history lost the code. A hard timeout exits 124 after its timeout notice; a command handed off to the background still exits 0. On OpenCode 2 the stored result of a failed command now ends with OpenCode's own `Exited with code N` line, which a rebuilt turn keeps on its own line after the output; the live result leaves it out of Cursor's stdout, which gets the code as its exit code. OpenCode 1.x keeps a command's exit only in its metadata, so the provider now adds the same line to the model's copy of a failed shell result there too, and a rebuilt turn keeps every command's code.
30
31
- Image-heavy sessions no longer decode every earlier image on every step when OpenCode keeps tool-result images out of its stored history (agent-stack's OpenCode patch stores them as `tool-media/<sha256>.<ext>` files). The provider declares `file:` URLs for images in `supportedUrls`, so OpenCode hands it the stored file instead of the bytes; an image Cursor's conversation already holds is recognised by the hash in its name and skipped without reading the file, and one that has to be sent is read and checked against that hash (a missing or changed file is left out like other unreadable tool media). Hosts that send image bytes are unchanged.
31
32
- A plan the user declines, or approves for the build agent, ends its Run with the plan's own cancellation even when Cursor switched models during that turn, instead of the model-switch stop.
0 commit comments