Skip to content

agent: Add ability to queue messages#46019

Merged
danilo-leal merged 9 commits intomainfrom
queue-prompts
Jan 4, 2026
Merged

agent: Add ability to queue messages#46019
danilo-leal merged 9 commits intomainfrom
queue-prompts

Conversation

@danilo-leal
Copy link
Member

@danilo-leal danilo-leal commented Jan 4, 2026

Closes #37905
Closes #42338
Closes #33501
Closes #41414

This PR introduces a way to queue messages in the agent panel through the cmd-shift-enter keybinding. Queued up messages get sent as soon as the current generation wraps up. It's also possible to send a queued message before time, effectively interrupting the ongoing generation. You can also clean up the entire queue through another keybinding. Then, if you normally interrupt the thread and if there are queued up messages, those will get sent as soon as the interruption generation wraps up. Lastly, if you queue up a message with an idle thread, that's sent immediately, given that there can never exist a "stuck queue" with this implementation.

Screenshot.2026-01-04.at.9.51.mp4

Release Notes:

  • agent: Added the ability to queue messages in the agent panel.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 4, 2026
@danilo-leal danilo-leal merged commit 69ecd31 into main Jan 4, 2026
27 checks passed
@danilo-leal danilo-leal deleted the queue-prompts branch January 4, 2026 17:27
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Closes #37905
Closes #42338
Closes #33501
Closes #41414

This PR introduces a way to queue messages in the agent panel through
the `cmd-shift-enter` keybinding. Queued up messages get sent as soon as
the current generation wraps up. It's also possible to send a queued
message before time, effectively interrupting the ongoing generation.
You can also clean up the entire queue through another keybinding. Then,
if you normally interrupt the thread and if there are queued up
messages, those will get sent as soon as the interruption generation
wraps up. Lastly, if you queue up a message with an idle thread, that's
sent immediately, given that there can never exist a "stuck queue" with
this implementation.


https://github.com/user-attachments/assets/54e68d95-5abb-477c-aecb-9325dcb99175

Release Notes:

- agent: Added the ability to queue messages in the agent panel.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#37905
Closes zed-industries#42338
Closes zed-industries#33501
Closes zed-industries#41414

This PR introduces a way to queue messages in the agent panel through
the `cmd-shift-enter` keybinding. Queued up messages get sent as soon as
the current generation wraps up. It's also possible to send a queued
message before time, effectively interrupting the ongoing generation.
You can also clean up the entire queue through another keybinding. Then,
if you normally interrupt the thread and if there are queued up
messages, those will get sent as soon as the interruption generation
wraps up. Lastly, if you queue up a message with an idle thread, that's
sent immediately, given that there can never exist a "stuck queue" with
this implementation.


https://github.com/user-attachments/assets/54e68d95-5abb-477c-aecb-9325dcb99175

Release Notes:

- agent: Added the ability to queue messages in the agent panel.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#37905
Closes zed-industries#42338
Closes zed-industries#33501
Closes zed-industries#41414

This PR introduces a way to queue messages in the agent panel through
the `cmd-shift-enter` keybinding. Queued up messages get sent as soon as
the current generation wraps up. It's also possible to send a queued
message before time, effectively interrupting the ongoing generation.
You can also clean up the entire queue through another keybinding. Then,
if you normally interrupt the thread and if there are queued up
messages, those will get sent as soon as the interruption generation
wraps up. Lastly, if you queue up a message with an idle thread, that's
sent immediately, given that there can never exist a "stuck queue" with
this implementation.


https://github.com/user-attachments/assets/54e68d95-5abb-477c-aecb-9325dcb99175

Release Notes:

- agent: Added the ability to queue messages in the agent panel.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
Closes zed-industries#37905
Closes zed-industries#42338
Closes zed-industries#33501
Closes zed-industries#41414

This PR introduces a way to queue messages in the agent panel through
the `cmd-shift-enter` keybinding. Queued up messages get sent as soon as
the current generation wraps up. It's also possible to send a queued
message before time, effectively interrupting the ongoing generation.
You can also clean up the entire queue through another keybinding. Then,
if you normally interrupt the thread and if there are queued up
messages, those will get sent as soon as the interruption generation
wraps up. Lastly, if you queue up a message with an idle thread, that's
sent immediately, given that there can never exist a "stuck queue" with
this implementation.


https://github.com/user-attachments/assets/54e68d95-5abb-477c-aecb-9325dcb99175

Release Notes:

- agent: Added the ability to queue messages in the agent panel.
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.

ACP: Support adding messages without interrupting agent

1 participant