Skip to content

feat(studio): message queue and mid-run steering - #980

Closed
jtenniswood wants to merge 1 commit into
studio/S14from
studio/S15
Closed

feat(studio): message queue and mid-run steering#980
jtenniswood wants to merge 1 commit into
studio/S14from
studio/S15

Conversation

@jtenniswood

Copy link
Copy Markdown

Stack 15/21 — Studio: message queue and mid-run steering

The most smeared feature of the original branch, landed as one coherent delta in dependency order: the queue machinery first, steer over it.

  • Queue: queuedMessages/takeQueued, drain-one-per-run, flush-on-idle; chat-view gains the QueuedMessageStrip.
  • Steer: PendingSteer + the pure, tested splitPendingSteersOnWatermark, orphan requeue, steerMessage/steerQueued/cancelPendingSteers, and the steer-echo assistant re-anchor. Gated on features.has('http_steer')the PR 2 daemon endpoints — with the explicit queue fallback (too_late / 409 stale_run_control / absent capability → queue; the text is never dropped).
  • Composer routing: resolveComposerAction decides Enter = send/queue/steer; the "Message queuing" preference lands here in Personalize (useEnterSendBehavior; Shift+Enter does the opposite).

Steer is deliberately vitest-owned (watermark-split + client-action suites) — the fixture daemon has no steer capability, so e2e exercises the queue fallback path unchanged.

Demo at this stack point: type while a run is driving — messages queue or steer per your preference; cancel a pending steer before it drains.

Part of the stacked landing of #618.

🤖 Generated with Claude Code

The queue machinery first: messages typed while a run drives park as
queuedMessages, drain one per run with flush-on-idle, and render as the
queued strip in the chat view. Steer lands over it: PendingSteer with the
pure splitPendingSteersOnWatermark, orphan requeue, steerMessage/steerQueued/
cancelPendingSteers, and the steer-echo assistant re-anchor. The composer's
resolveComposerAction routes Enter to send/queue/steer, and Personalize
gains the Message-queuing preference (Shift+Enter does the opposite).

Steer is gated on features.has('http_steer') — the daemon endpoints from
earlier in this series — with the explicit queue fallback (too_late, 409
stale_run_control, or an absent capability all queue; text is never
dropped). Against the e2e fixture (no steer capability) the gate stays on
the queue path, so specs are unchanged; the watermark-split and
client-action suites own the steer contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jtenniswood jtenniswood added enhancement New feature or request ux WebUI Applies to the WebUI interface labels Sep 2, 2026
@jhrozek jhrozek closed this Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ux WebUI Applies to the WebUI interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants