Skip to content

fix(server): settle stuck starting runs and offer Stop - #66

Closed
macodev00 wants to merge 1 commit into
t3code/codex-turn-mappingfrom
cursor/v2-run-stuck-starting-23d5
Closed

macodev00 wants to merge 1 commit into
t3code/codex-turn-mappingfrom
cursor/v2-run-stuck-starting-23d5

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

When provider-turn.start fails for the last time after the provider session has already opened, the run is settled as failed instead of staying starting. The composer Stop control, and thread.stop, are offered for preparing and starting runs.

Why

A Pi turn that died during resume/ensure left the outbox failed and the run starting with startedAt: null. Settle stayed blocked because the run still looked active, and the desktop composer hid Stop because that state is the connecting phase. Retryable attempts still leave the run starting. An interrupt is not turned into a failure, and a run that was already interrupted is left alone. Queued runs stay non-interruptible.

Fixes pingdotgg#13392

UI Changes

Stop is the primary composer control while a preparing or starting run can be interrupted, including when the draft already has text. A running turn still shows Steer once there is something to send.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes
Open in Web Open in Cursor 

A terminally failed provider-turn.start left the run starting after the session had already opened, so settle stayed blocked and the composer never offered Stop. Settle that failure once retries are exhausted, and treat preparing and starting runs as interruptible.

Co-authored-by: maco <macodev00@users.noreply.github.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 28, 2026
@macodev00

Copy link
Copy Markdown
Owner Author

Not opened upstream: targets an unreleased branch, not main.

@macodev00 macodev00 closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant