Repository navigation
Description
Summary
When a tool-enabled turn ends with a short progress fragment and no tool call,
shouldContinueProgressOnlyTurn (src/protocol/progress-continuation.ts:79-95)
opens a second Run via reopenWithUserMessage(progressOnlyContinuationPrompt())
(src/language-model.ts:6357-6390). That Run re-reads the full ~17k prefix to
answer a turn the model had already finished.
Requested by @oakimov in #181, with A/B samples.
Proposal: CURSOR_PROGRESS_CONTINUATION=0 (also false / off / no) disables
only the synthetic follow-up. Default stays as today.
Environment
- OpenCode
2.2.7,opencode --standalone run cursor-opencode-providerbuilt fromupstream/main15c90db- Model:
cursor/deepseek-v41-flash-1017, no variant (defaultreasoning_effort=high) - Both arms on the same build; the only difference is the env var
- Isolated
XDG_DATA_HOME/XDG_CACHE_HOME/XDG_CONFIG_HOME/XDG_STATE_HOME
Prompt that triggers it
Reply with only these three words and no punctuation: Checking the workspace
The reply Checking the workspace matches isProgressOnlyAssistantText
(progress verb + inspection object, no sentence punctuation, ≤8 words). Note that
the period matters: "Checking the workspace." does not match, because any
.!?;: disqualifies it. Use the prompt with no trailing punctuation.
A/B: progress-only turn (live Cursor runs, 3 pairs)
| A — default | B — CURSOR_PROGRESS_CONTINUATION=0 |
|
|---|---|---|
| Cursor Runs opened | 2 | 1 |
progress-only: continuing in log |
yes, attempt=1 |
absent |
turn_ended raw input per Run |
17039 then 17188 | 17039 |
rawInput reported at finish |
17188 | 17039 |
cacheRead at finish |
16896 | 16896 |
usedTokens (occupancy) |
17291 | 17044 |
| delivered text | Checking the workspaceChecking the workspace (duplicated) |
Checking the workspace |
Run wall time (Run 1 → last turn_ended) |
3844 / 3167 / 3732 ms | 1770 / 1803 / 1812 ms |
process wall (/usr/bin/time) |
7.66 / 5.20 / 6.41 s | 4.79 / 4.50 / 4.57 s |
Both arms pay the same first Run (17039 input, 16896 cache read). The extra Run is
the entire difference, and it is roughly double the whole-turn wall time. Note the
duplicated text in A: the continuation prompt asks the model not to repeat the
progress update, and deepseek-v41-flash-1017 repeated it anyway in all three
samples.
A/B: normal tool-calling turn is unaffected (same build)
Inspect package.json in this workspace and report the test script. Use tools.
| A — default | B — gate off | |
|---|---|---|
| Cursor Runs opened | 1 | 1 |
progress-only: continuing |
absent | absent |
execRequests |
2 | 3 |
displayToolCalls |
2 | 3 |
turn rawInput |
51388 | 51734 |
| outcome | file read, answer returned | file read, answer returned |
execRequests differs only because the model asked to read the file an extra
time in that sample; the gate does not touch tool turns. Both arms return the
test script.
CURSOR_PROVIDER_DEBUG=1 — A (default, continuation fires)
[2026-11-11T10:12:02.501Z] outbound Run: model=deepseek-v41-flash-1017 systemPromptLen=21050 tools=13 userTextLen=76 checkpointLen=0 runRequestBytes=26814 requestContextBytes=26503
[2026-11-11T10:12:04.529Z] turn_ended: f1:wt0=17039 f2:wt0=5 f3:wt0=16896 f4:wt0=0 f5:wt0=0
[2026-11-11T10:12:04.536Z] progress-only: continuing attempt=1
[2026-11-11T10:12:06.345Z] turn_ended: f1:wt0=17188 f2:wt0=103 f3:wt0=16896 f4:wt0=0 f5:wt0=98
[2026-11-11T10:12:06.352Z] finish: reason=stop v3In=17183 v3Out=108 v3CacheRead=16400 v3Reasoning=98 rawIn=17188 rawOut=103 rawCacheRead=16896
(f1=input, f2=output, f3=cache_read, f4=cache_write, f5=reasoning)
CURSOR_PROVIDER_DEBUG=1 — B (gate off)
[2026-11-11T10:12:12.722Z] outbound Run: model=deepseek-v41-flash-1017 systemPromptLen=21050 tools=13 userTextLen=76 checkpointLen=0 runRequestBytes=26814 requestContextBytes=26503
[2026-11-11T10:12:14.492Z] turn_ended: f1:wt0=17039 f2:wt0=5 f3:wt0=16896 f4:wt0=0 f5:wt0=0
[2026-11-11T10:12:14.500Z] finish: reason=stop v3In=17039 v3Out=5 v3CacheRead=16896 v3Reasoning=0 rawIn=17039 rawOut=5 rawCacheRead=16896
No progress-only: line, one turn_ended, turn returns immediately.
Suggested patch
/** `CURSOR_PROGRESS_CONTINUATION=0|false|off|no` disables the synthetic retry. */
function progressContinuationDisabled(
env: Record<string, string | undefined> = process.env,
): boolean {
const value = env.CURSOR_PROGRESS_CONTINUATION?.trim().toLowerCase()
return value === "0" || value === "false" || value === "off" || value === "no"
}
export function shouldContinueProgressOnlyTurn(input: {
// …unchanged
}): boolean {
if (progressContinuationDisabled()) return false
return (
input.allowTools &&
// …unchanged
)
}bun test test/progress-continuation.test.ts → 9 pass, 0 fail. Nothing else in
the Run path changes: the gate is read inside shouldContinueProgressOnlyTurn, so
the steers/checkpoint branches above it are untouched.
Notes
- Both A and B are real Cursor wire output. No fixture or harness traffic is
included in any number above; the only local instrumentation was adding the
two-line env gate to an otherwise unmodifiedupstream/mainbuild so both arms
ran identical code. - An unrelated
gpt-5.6-lunaRun appears in some logs. That is OpenCode's own
session-title generation, on a differentconversationId; it is excluded from
every table above. - A default-on continuation is defensible for models that stop mid-task. This is
only an escape hatch for operators who would rather get control back. - Happy to send this as a focused PR.
Activity
feat: add CURSOR_PROGRESS_CONTINUATION opt-out