Skip to content

feat(composer): queue follow-up messages while task is running (#608) - #641

Open
cagdasyurekli wants to merge 1 commit into
andrewyng:mainfrom
cagdasyurekli:feat/issue-608-queue-messages
Open

feat(composer): queue follow-up messages while task is running (#608)#641
cagdasyurekli wants to merge 1 commit into
andrewyng:mainfrom
cagdasyurekli:feat/issue-608-queue-messages

Conversation

@cagdasyurekli

Copy link
Copy Markdown

Closes #608

Summary

Allows users to compose follow-up messages and queue them while a task is running. Once the active turn completes, queued messages automatically drain and execute sequentially.

Changes

  • Types: Added QueuedMessage in surfaces/gui/src/types.ts.
  • Composer:
    • Unblocks submission when running && !gateOpen if onQueue handler is present.
    • Added Queue button (data-testid="composer-queue-btn") beside the Stop button when content is drafted.
    • Added a queued items strip (data-testid="composer-queue") displaying count and removable chips for queued messages.
  • App:
    • Tracks queuedMessages state per session.
    • Auto-drains and sends queued messages sequentially when !running && connected.
  • Locales:
    • Added English and Chinese translation strings for queue actions and indicators.

…wyng#608)

- Define QueuedMessage in types.ts
- Allow composing and queueing follow-ups via button or Enter while running
- Display queued messages strip above composer with count and remove action
- Automatically drain queue and send next message sequentially when task finishes
- Add i18n translations in English and Chinese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Queue messages so follow-ups can be composed while a task is running

1 participant