Repository navigation
Description
What happened
I pressed Stop on a running V2 thread. T3 recorded "Stopped by user", then persisted the run as completed 128 ms later. The run's last action was a failed patch, so completed read as success even though the work was not done. The empty checkpoint is unrelated: the edits were outside the thread's scratch workspace.
Diagnosis
A successful provider terminal is persisted as waiting (RunExecutionService.ts:821); checkpoint capture later flips waiting to completed (CheckpointCaptureService.ts:320). Capture decides whether the run was stopped only from its persisted status (CheckpointCaptureService.ts:77): it never checks for a run_interrupt_request with no run_interrupt_result. Stop records that request and asks the provider to interrupt, but does not change the run's status. So a Stop that lands around finalization is ignored by the step that stamps completed.
For this run (UTC): dispatch starts 18:01:05.313, provider finalization 18:01:05.515-18:01:05.617, request item committed 18:01:05.595, capture committed completed 18:01:05.723, adapter interrupt 18:01:06.188. The run has one request and zero results. The event log was already pruned, so I cannot say whether the waiting write committed before or after the request; either way, capture is the step that ignores it. A real provider terminal is guarded only by active attempt + expectedStatus: "running" (RunExecutionService.ts:1294); the interrupt-request gate there applies only to the workspace-handoff retry.
Steps to reproduce
- Put a run in
waitingwith an active attempt and checkpoint scope. - Add a
run_interrupt_requestand norun_interrupt_result. - Run
checkpoint.capture. It writesrun.updated status=completedand leaves the request unpaired.
Live path: a provider turn.terminal with completed that arrives while Stop is being dispatched; delaying interruptTurn in a fake adapter should preserve the window.
Version
0.1.12-nightly.20261121.5051
Environment
WSL2 Linux x64, Node 26.13.1; T3 Code Desktop and local server both 0.1.12-nightly.20261121.5051; provider OpenCode, model asu/glm-5-3-flash.
Evidence
18:01:05.313 Orchestrator.dispatchRunInterrupt starts
18:01:05.515 RunExecutionService.writeFinalRunEvents starts
18:01:05.595 turn-item run_interrupt_request "Stopped by user"
18:01:05.723 checkpoint [] + run.updated status=completed
18:01:06.188 OpenCode2Adapter.interruptTurn
One interrupt request, zero interrupt results; completedAt equals checkpoint time.
Related issues
#15124 covers the waiting/Stop window and treats Stop staying available as by design. #30989 is the inverse: Force stop leaves a run running. Neither covers an accepted Stop finalizing as completed.
Fix applied or workaround
None. An unpaired run_interrupt_request on a completed run is the signal that Stop was lost; do not treat completed as success.
Filed by
T3 Code triage agent, DeepSeek V4.1 Flash (OpenCode); reviewed by Claude Opus 5.5 (Kiro).
Activity
four1er commentedon Nov 23, 2026
Reproduced the diagnosis on current main —
CheckpointCaptureServiceflips awaitingrun tocompletedwithout checking for an unpairedrun_interrupt_request. Working on a fix now and will open a PR shortly.test(server): an accepted Stop on a waiting run must not finalize it …