Skip to content

Feat/prompt queue - #3

Closed
Wisawathep wants to merge 2 commits into
Type-Delta:mainfrom
Wisawathep:feat/prompt-queue
Closed

Wisawathep wants to merge 2 commits into
Type-Delta:mainfrom
Wisawathep:feat/prompt-queue

Conversation

@Wisawathep

@Wisawathep Wisawathep commented Sep 9, 2026 •

Copy link
Copy Markdown

What Changed

Why

UI Changes

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

Wisawathep and others added 2 commits September 9, 2026 17:17
While an agent turn is running, the composer had only two options for a
follow-up: steer it into the running turn, or wait. This adds a client-side
prompt queue so a user can line up follow-up prompts (up to 10 per thread)
that each fire as their own fresh turn once the thread goes idle.

Steering is preserved and unchanged — a separate "Queue" button holds a prompt
instead of injecting it into the running turn. The queue drains only into a
genuinely idle thread (it pauses on a running turn, a pending approval or
user-input request, and a connecting/unavailable environment), so an auto-fired
follow-up never buries blocked-on-you work. A failed dispatch restores the
prompt to the head of the queue and pauses on it to avoid a hot retry loop.

The queue is client-side and persisted per device (localStorage), keyed by the
thread's scoped ref, so it survives reload; it drains for the thread open in the
chat view. Queued prompts are text-only in this revision. The pure queueing
rules and the idle-dispatch decision live in client-runtime so a future mobile
surface can reuse them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
While a turn runs, Enter now holds the prompt to run as its own turn after
completion (matching the Queue button) instead of steering into the running
turn. Restricted to the plain composing state -- never over a pending
approval, input request, or plan follow-up prompt. Steering stays on the
running-send button.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added size:XL vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Sep 9, 2026
@Type-Delta

Copy link
Copy Markdown
Owner

This feature is already available in the fork version 0.0.42. Closing this PR 😊

@Type-Delta Type-Delta closed this Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants