Skip to content

agent: End turn at message boundary when queue has pending messages#46980

Merged
mikayla-maki merged 1 commit intomainfrom
quick-queue
Jan 16, 2026
Merged

agent: End turn at message boundary when queue has pending messages#46980
mikayla-maki merged 1 commit intomainfrom
quick-queue

Conversation

@mikayla-maki
Copy link
Member

@mikayla-maki mikayla-maki commented Jan 16, 2026

This feature cost $12

Release Notes:

  • Changed the behavior of queued messages to gracefully wait for the current activity to complete.

Move message queue ownership from ThreadView to Thread, making the queue
part of the core data model rather than view state. When the agent is
running and a user queues a message, the turn now ends at the next valid
boundary (after tool calls complete) instead of waiting for the full
generation to finish. This allows queued messages to be sent sooner.

The "one turn = one user message" invariant is maintained - the turn ends
cleanly and the UI sends the queued message as a new turn.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 16, 2026
@mikayla-maki mikayla-maki marked this pull request as ready for review January 16, 2026 09:57
@mikayla-maki mikayla-maki merged commit f1a8b05 into main Jan 16, 2026
27 checks passed
@mikayla-maki mikayla-maki deleted the quick-queue branch January 16, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant