Conversation
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a user sends a Steer message while a foreground Task is running, the Task can continue executing but its result is lost to the parent conversation. This change retains the original execution, appends its completion exactly once, and delivers the follow-up to Cursor even if the parent Run has already finished.
Behavior
Related to #424: this includes the same narrow correction that keeps retained Tasks out of the interrupted set, and additionally handles foreground settlement, late-result delivery, and Cursor presentation. It is standalone against current
main; it does not depend on merging #424.Validation
cargo clippy --locked -p cursor-server --all-targets -- -D warningspassed.cargo fmt --all -- --checkandgit diff --checkpassed.The same server implementation was also tested in real Cursor on macOS: one foreground Task ran a gated script, a Steer message produced “Acknowledged” while the original process remained alive, then releasing the gate produced the original random marker in the parent conversation and a Completed Task card. Trace inspection confirmed one Task, one Shell execution, one completion event, and one final turnEnded. That UI test preceded rebasing onto current upstream; the tests below were rerun on this PR branch.
Only server implementation and regression tests are included. No desktop UI, version, release workflow, updater, signing, fork customization, database schema, or local verification-report changes.
Pending execution ownership is transport-scoped and in memory; this does not add recovery of still-running Tasks across process restarts or transport replacement.