Skip to content

fix(web): idle threads no longer offer foreground Stop - #1691

Merged
incognitojam merged 1 commit into
mainfrom
styal/fix-stop-button-idle-thread
Nov 20, 2026
Merged

incognitojam merged 1 commit into
mainfrom
styal/fix-stop-button-idle-thread

Conversation

@incognitojam

@incognitojam incognitojam commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

An idle thread could gain a red Stop button after syncing even though its runs were completed. #1649 made the newer-summary fallback treat every background roster entry, including a pull request watch, as interruptible foreground work.

Situation Result
Completed thread with a watch or background roster The composer offers Send; background work keeps its own controls.
Preparing, starting or running turn Stop remains available.
Checkpoint waiting with no interruptible run No foreground Stop.

Validation: the composer browser regression and checkpoint-waiting assertion both failed before the fix and passed afterward. An isolated Replay server reproduced the red button with a synthetic completed thread and watch roster; the same state shows Send after the fix. The real-app scenario fails on main (b2271a4d4d3) at the unexpected Stop button and passes on this head. Native Mac and mobile clients were not run; desktop uses the changed web composer, and mobile code is unchanged.

Before:completed thread incorrectly offers Stop

After: the same completed thread offers Send


Written by codex/gpt-6.1-sol, reviewed by codex/gpt-6-astra, in styal 🧵.

@github-actions

Copy link
Copy Markdown

Upstream divergence

Both sides are compared with upstream at the in-order tip 9f4b42e750. Excludes .repos/ and pnpm-lock.yaml.

Measure Base This PR Change
Upstream files the fork changes 2,336 2,337 +1
Lines changed in them 165,117 165,175 +58
Upstream files the fork removes 78 78 0
Fork-only files 1,052 1,053 +1
Fork-only lines 192,500 192,550 +50

Upstream files that start to differ (1)

  • apps/web/src/components/ChatView.browser.test.tsx: +50 −0 from upstream
Upstream files whose difference changes (2)
File Change Now differs by
apps/web/src/session-logic.ts +5 50 lines
apps/web/src/session-logic.test.ts +3 58 lines

@incognitojam
incognitojam marked this pull request as ready for review November 20, 2026 12:49
@incognitojam
incognitojam merged commit e98a4d4 into main Nov 20, 2026
48 of 52 checks passed
@incognitojam
incognitojam deleted the styal/fix-stop-button-idle-thread branch November 20, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant