Repository navigation
feat: add CURSOR_PROGRESS_CONTINUATION opt-out - #201
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds
Reviewed Reviews (2) · Last reviewed commit: "feat: add CURSOR_PROGRESS_CONTINUATION o..." · Reviewed by Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Set CURSOR_PROGRESS_CONTINUATION to 0, false, off or no (any case, surrounding whitespace ignored) to stop the follow-up Run the provider opens when a tool-enabled turn ends with a short progress fragment. The check is part of shouldContinueProgressOnlyTurn, so steers Cursor did not take, tool turns and checkpoints keep their behavior. The default is unchanged. The test preload clears the variable for every run and fails a test that leaves it set. The managed-spawn adapter test now stops the job's processes before it removes its temp root. It removed the root once `done` existed while the job was still writing there, which left files behind on macOS. Closes #186
d6c83a5 to
50b3ced
Compare
|
@adonm, could you retest #186 on |
Adopt upstream's oakimov#199 pricing table, oakimov#200 in-place catalog refresh, oakimov#201 CURSOR_PROGRESS_CONTINUATION opt-out, and oakimov#202 local AI SDK entry. The fork's earlier ports (deb1787, 2bbab84, 9bf27b0 gate) are dropped where upstream now covers the same ground. Keep the fork-only pieces upstream still lacks: the seven-day conversation snapshot default with fixed 24 h .tmp cleanup and resolver-derived test ages, scripts/build-atomic.sh, scripts/sync-upstream.sh, the stale-dist gate, and test/updater-build.test.ts. Retire the last topic branch: nothing on perf/cache-ttl-and-lean-runtime remains that upstream or this merge does not already cover, so TOPICS is empty and the updater tests seed a synthetic topic into the copied script.
Closes #186
@adonm, thanks for the A/B runs in #186. This adds the opt-out you proposed.
Change
CURSOR_PROGRESS_CONTINUATIONset to0,false,offorno(any case, surrounding whitespace ignored) turns off the follow-up Run opened when a tool-enabled turn ends with a short progress fragment. The turn then ends with that fragment and a normalstop. Any other value, or none, keeps today's behavior.shouldContinueProgressOnlyTurn, which runs after the steer branch. A steer Cursor did not take still gets its follow-up Run; tool turns and checkpoints are unchanged. It is read from the OpenCode process (or daemon) environment at each turn end and applies to both OpenCode majors.test/preload.tsclears the variable for every run and fails a test that leaves it set, as it does forCURSOR_PROVIDER_CACHE_TTL_MS.Test cleanup from #197
The managed-spawn adapter test added in #197 (
runs a managed spawn …intest/shell-timeout.test.ts) removed its temp root as soon asdoneexisted.doneappears before the supervisor fills it, and the job was still finishing its writes, so files came back and the TMPDIR leftover check failed. On macOS that broke every fullbun testrun here; each shell case leaked about one run in three on its own. The job's processes exit within milliseconds, so this is a race in the test, not a hang. The test now callsstopProcessesUsing(root)before removing it, astest/terminal-runner.test.tsdoes. #202 (for #185) carries the identical hunk so each PR passes on its own; whichever merges second merges it cleanly.Verification
test/progress-continuation.test.ts): on/off value matrix, and the default read fromprocess.env.test/display-bridge-pump.test.ts): by default a qualifying fragment opens exactly one follow-up and finishes once. With each opt-out spelling it opens none, emits the original text once and onestopfinish, and keeps the checkpoint. Removing the gate fails those four tests.test/early-steer.test.ts): with the opt-out, a progress fragment plus a steer Cursor did not take still sends the steer as the follow-up Run, without a nudge.test/test-isolation.test.ts).bun run typecheck,bun run buildandbun testonmainat 3dc9202, macOS: 3653 pass, 9 skip, 0 fail across 133 files.