Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): offer Stop while a v2 run is still starting #13433

Closedvioletweather(GitHub profile, opens in a new tab)wants to merge 250+ commits intot3code/codex-turn-mapping fromrefs/pull/13433/headopened View on GitHub

What Changed

The desktop/web composer now offers Stop for a run that is still preparing or starting, the same set threadRuntimeHasInterruptibleRun already uses on mobile. While such a run is active, Stop replaces the disabled send spinner. The thread.stop shortcut uses the same check.

queued is not included, since run.interrupt rejects it.

Why

Part 2 of #13392. derivePhase maps preparing/starting to "connecting", and Stop was only offered for "running". A run stuck in starting therefore had no way to stop it from the desktop, even though run.interrupt already settles such a run ("Run interrupted before provider start").

The server part of #13392 is a separate PR.

UI Changes

Reproduced with a stand-in pi binary that exits during the turn start, as described in the issue.

Before: a stuck starting run shows a disabled spinner and no Stop.

Before: run stuck starting

After: the same thread offers Stop.

After: Stop offered while starting

After pressing Stop: the run is interrupted before provider start and the thread is no longer working.

After: run interrupted before provider start

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 (not applicable)

Ran vp lint and vp fmt --check on the changed files, tsc --noEmit for apps/web, and the existing ComposerPrimaryActions and threadExecution tests. Mobile already offers Stop for these states.

Done with Claude Code (Claude Opus 5.5).

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Approved at 939f9bd

      Macroscope's review found this PR approvable — This is a small, self-contained web UI bug fix that exposes the existing Stop action during supported preparing/starting states. It does not alter defaults, backend workflows, schemas, infrastructure, or static-analysis configuration.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.