Skip to content

[FEATURE]: Add a prompt queue and interrupt controls to the composer #37381

Description

@AndreLCanada

Description

Currently, when a response is streaming, the only way to send a follow-up is to interrupt it. There is no way to queue a message for after the current turn, or to inject it into the current stream without stopping it.

I would like to add a behind-the-toggle "Prompt queue" feature that shows a per-message dropdown when the session is busy:

  • Send now - interrupt the current response and send immediately.
  • After current stream - inject the prompt into the current response without stopping it.
  • After this turn - queue the message and send it when the session becomes idle.
  • Sub-session - queue the message, then fork it into a new tab when idle.

This would also include a small dock for queued messages with drag-to-reorder and repository congruent tooltips and cycle hot key assignments.

The legacy general.followup setting is not exposed in the current UI and appears to be dead code, so this feature would replace it.

Working Example Found At

I have a working implementation in a branch at AndreLCanada/opencode/prompt-queue-controls if the team is interested in looking at the approach. Continuing to use the branch myself incase any edge cases remain.

Preview

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions