Skip to content

feat: add clear queue button to complete message queueing feature#121

Merged
BunsDev merged 2 commits intomainfrom
copilot/support-queueing-messages
Mar 31, 2026
Merged

feat: add clear queue button to complete message queueing feature#121
BunsDev merged 2 commits intomainfrom
copilot/support-queueing-messages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Message queueing was already ~80% implemented — users could queue messages while the agent was busy, see them in the timeline with a "Queued" badge, and have them auto-send in order. The one missing acceptance criterion: no way to cancel queued messages before they sent.

What Changed

  • onClearQueue handler — revokes blob preview URLs for queued optimistic messages, then removes them from optimisticUserMessages and clears queuedMessages
  • "X queued" indicator → cancel button — the static text label is now a button with a × icon; turns destructive red on hover; calls onClearQueue on click

Why

Completing the last unimplemented acceptance criterion from the queueing feature: "Queue can be cancelled/cleared before messages are sent." Without this, queued messages were committed with no escape hatch.

UI Changes

Before: 2 queued (plain text, non-interactive)

After: 2 queued × (button, hovering turns red, clicking clears all queued messages and removes their optimistic timeline entries)

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

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
5 tasks
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 31, 2026 9:56pm

Copilot AI changed the title [WIP] Add support for queueing messages during processing feat: add clear queue button to complete message queueing feature Mar 31, 2026
Copilot AI requested a review from BunsDev March 31, 2026 21:57
@BunsDev BunsDev marked this pull request as ready for review March 31, 2026 22:21
@github-actions github-actions bot added size:L vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 31, 2026
@BunsDev BunsDev merged commit 52e5d23 into main Mar 31, 2026
11 of 14 checks passed
@BunsDev BunsDev deleted the copilot/support-queueing-messages branch April 1, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 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.

Message queueing

2 participants