Repository navigation
Description
When Cursor sends a native exec the provider doesn't support, the provider soft-denies it (buildUnsupportedExecDeny). The deny is recorded as an exec but not as a provider answer, so historyCoverage treats it as a host exec with no result. For the rest of that Run, any cut right after a tool result ends the turn with missing-host-results.
In practice it's almost always force_background_shell_args. Cursor sends it when a host note is queued while a shell runs. The provider answers with a bare status: NOT_FOUND. Nothing runs on the host, the model gets no text, and there's nothing to replay.
On #172 I said keeping this one refused seemed fine, based on 1 Run in 82. It has since failed a real turn, and it's more common than I thought.
Repro: branch test/soft-deny-rebuild on my fork (5b6845f, one test-only commit on main 15c90db). It adds two cases to the post-result matrix in test/run-error-host.test.ts. In soft-denied-background, Cursor sends force_background_shell_args between the two host shells and the Run is cut after the second result. Main refuses the rebuild:
exec: SOFT-DENIED force_background_shell_args id=70
recovery: history-check … reason=missing-host-results execs=3 … results=2 pending=0
missing-read in the same spot rebuilds. soft-denied-background-after-result (the deny in the cut attempt) is refused, and should stay refused. bun test test/run-error-host.test.ts -t "soft-denied-background": 1 fail, 1 pass.
Live: 2026-11-10 18:08 UTC, GPT-5.6 Sol, OpenCode 2.2.6 through T3, our fork on 41dbd81 (same historyCoverage). Two soft-denies at 18:06:30, then a cut 38 s after the last result, refused with missing-host-results. The Run's edit handshake had its write result, so the two denies were the only uncovered execs. Over Nov 4–11 our host logs have 167 soft-denies (136 force_background_shell in 78 Runs, 31 force_background_subagent in 4), and 2 of those Runs later had a post-result cut that main refuses.
This isn't like the refusals you kept final. The model didn't make a bad call that it might repeat. It's Cursor's own request, the shell it names has already finished with its result in history, and asking again gets the same instant deny.
Suggested fix: record the soft-deny as an answer with no side effect and exempt it like missing-read. A deny in the cut attempt still refuses.
+ replaySafety.recordProviderAnswer(esmId, "unsupported-exec")
trace(`exec: SOFT-DENIED ${variant.requestName} id=${esmId}`)Add "unsupported-exec" to ProviderAnswer and an unsupportedExecs= count on the history-check line. With that, run-error-host, replay-safety, exec-variants and parallel-pump pass, and the fixture rebuilds. Happy to send it as a PR.
Activity
fix(shell): rebuild past Cursor's own shell traffic and keep backgrou…
fix(shell): rebuild past Cursor's own shell traffic and keep backgrou…
fix(shell): rebuild past Cursor's own shell traffic and keep backgrou…