MessageQueue
Turns you typed while a run was in flight, stacked and cancelable until it finishes.
Install it:
npx shadcn add @ambientui/message-queueLive
Fix the converter and add a guardrunning
3 queuedsends when this finishes
1Also add a changeset
2Then run the full suite
3And open the PR when it's green
Behavior
- ·The running turn sits on a raised card with a live pulse; queued turns are muted rows beneath it — one glance separates what is happening from what is waiting.
- ·The arrow INTERRUPTS, it does not reorder: the picked turn runs now and the running one goes back to the head of the queue. A queue whose items shuffle while one is mid-answer implies the running turn can be overtaken quietly, and it cannot.
- ·It is offered only while something is actually running — with nothing to interrupt, the control would be a lie.
- ·The running row wears the shimmer, because that is the treatment this system uses for work in progress everywhere else.
- ·Rows animate with layout so promoting reorders visibly rather than teleporting.
When to use
- ·Whenever the composer accepts input during a run — the alternative is blocking the input and making the user hold a thought.
When not to
- ·As a task list; these are unsent messages, not work items.
- ·When turns cannot actually be reordered or canceled — showing controls that do nothing is worse than a plain count.