GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): a send after Stop queues instead of failing as a steer by 2SinceJuly · Pull Request #42994 · pingdotgg/t3code

Conversation

@2SinceJuly

@2SinceJuly 2SinceJuly commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Problem

Sending a message shortly after pressing Stop fails instead of queueing. The message stays in the composer with:

Target run run:thread:<id>:ordinal:N is stopping and cannot be steered.

Repro on v0.1.12 (also on upstream/main @ 135c78a278), default Follow-up behavior (Steer):

  1. Start a Claude turn that runs a long foreground command.
  2. Click Stop.
  3. Within about a second, type a message and press Enter.

On the reporter's machine query.interrupt → finalizeRootRun takes ~1.8 s, and any send inside that window fails; the same message sent ~4 s after Stop works.

The cause is a client/server mismatch. resolveComposerDispatchMode (packages/client-runtime/src/state/composerDispatch.ts:17) only checks running, canSteer, and the compaction gate, so a run that is stopping still reads as steerable and the composer sends deliveryIntent: "steer". The server's rescue for this window (apps/server/src/orchestration-v2/Orchestrator.ts:7662) is gated on deliveryIntent === "auto", which only ThreadManagementService sets (see #34163). The steer therefore reaches the steer path and fails the stopReachedRun check (Orchestrator.ts:6536). The client already knows a Stop is pending — the Stop button reads "Stopping" via presentRunStop — but the dispatch decision does not use it.

Change

threadCanSteer (packages/client-runtime/src/state/threadWorkflows.ts:130) now returns false while the active run has an unconfirmed run_interrupt_request, so the composer takes the existing queue branch and the message queues behind the stopping run. ChatView already feeds that value into every resolveComposerDispatchMode call in ChatComposer, so the web and mobile composer paths are both covered without touching the dispatch call sites.

runStopIsPending mirrors the semantics presentRunStop already uses: a run_interrupt_result for the same run means the Stop was confirmed and steering is allowed again, and an interrupt that belongs to a different run does not block.

Scope

Fixes #42910. One behavior change, in one shared helper. Server-side dispatch is untouched — the send still arrives as queue_after_active, which is the mode the server already accepts in this window.

Verification

  • Added packages/client-runtime/src/state/threadWorkflows.test.ts cases: a per-run Stop request makes threadCanSteer false, a confirmed Stop (run_interrupt_result) makes it true again, and a Stop that belongs to a different run does not block.
  • Confirmed the new cases fail on origin/main without the fix — the pending-Stop case returns true where it now returns false — and pass with it (32 passed).
  • npx effect-tsgo tsrs --noEmit in packages/client-runtime reports no errors for the two changed files.
  • Not verified: I did not drive the Stop → send sequence in the running desktop app, so I have no before/after recording of the composer. The reasoning above is from the dispatch and projection code plus the reporter's reproduction on v0.1.12.

Claude Code (model claude-sonnet-5) wrote the change and the tests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@2SinceJuly
fix(web): a send after Stop queues instead of failing as a steer
b35cb30
Stop leaves the run reading as running until its provider stops, so
resolveComposerDispatchMode kept answering followUpBehavior, which
defaults to steer. The server only rescues a send in that window when
it carries deliveryIntent "auto", so the steer reached the guard that
rejects a steer into a stopped run and the message stayed in the
composer.

Steering is now gated on the client while a Stop is pending, so the
composer queues the message behind the stopping run. The run still
reads as running, so the rest of the dispatch path is unchanged.
@2SinceJuly 2SinceJuly mentioned this pull request Nov 25, 2026
[Bug]: A composer send shortly after Stop fails with "is stopping and cannot be steered" instead of queueing #42910
Open
2 tasks done
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 25, 2026
@2SinceJuly

2SinceJuly commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate: #42918 landed the same fix on main while this branch was open — runStopRequested gates threadCanSteer, so a send in the Stop window queues instead of steering. That covers the web/desktop path and mobile's canSteerActiveTurn.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@2SinceJuly 2SinceJuly closed this Nov 25, 2026
@2SinceJuly
2SinceJuly deleted the fix/42910-queue-send-while-stopping branch November 25, 2026 18:25
@juliusmarminge

juliusmarminge commented Nov 25, 2026

Copy link
Copy Markdown
Member

Thanks for this. Main already has the change, as of 9e38508.

The fix is already on main through 9e385083d6. It covers the Stop-to-send window and also updates mobile's separate composer path.

One distinction matters: an interrupt result does not make that same run steerable again on the server. Main keeps steering blocked whenever the run has an interrupt request, so clearing the client guard after confirmation would no longer match the server.

Closing as superseded.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: A composer send shortly after Stop fails with "is stopping and cannot be steered" instead of queueing

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@2SinceJuly @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.