Skip to content

Queued prompts dequeued prematurely #15696

Closed as not planned
Closed as not planned

Description

@sasindumendis

Overview

When the plan/ build agent is still running in response to a prompt and the user queues one or more new prompts, subsequent prompts incorrectly get pulled at once before the on going response fully completes (apparently soon as the agent pauses for a tool call).

The agent often immediately acknowledges subsequent prompts (as reflected in its thinking block), but then either proceeds to complete the original response and inconsistently handles or forgets later ones OR starts responding to some or all of the newer prompts without completing its response for the previous (the model in use seems to affect the consistency here).

Steps to reproduce

  1. Start with a prompt that will trigger some tool calls.
  2. Before the agent completes all necessary tool calls to finish responding, queue couple of more prompts.

Expected behavior

Queued prompts should be handled one after the other in the correct order once the in progress work is completed and the initial prompt is full handled.

Alternatively,

  • User intent for queued prompts on processing order/ priority (wait for the on going response to complete or not..., dequeue all at once or one by one... etc.) is captured and handled accordingly.
  • Or the last queued prompt consistently disrupt the current loop at the next immediate chance and takes priority over work in progress/ any previously queued prompts. This however means queueing to run sequentially is either unsupported or addressed separately (drafts feature?).

Actual behavior

Queued prompts run as soon as the previous prompt loop exits for a tool call. Then either the original prompt or the subsequent ones are responded, sometimes both, not in a consistent manner.

Note: When multiple prompts are queued, they ALL run at once at the next tool call pause.

Environment

  • Version: OpenCode 1.2.15
  • Clients: TUI, Web UI

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 2, 2026
  2. changed the title [-]Queued prompts run while previous prompt is paused waiting for user question[/-] [+]Queued prompts run when agent pauses for questions to the user on previous prompt[/+] on Mar 2, 2026
  3. changed the title [-]Queued prompts run when agent pauses for questions to the user on previous prompt[/-] [+]Queued prompts run when the agent responding previous prompt pauses for tool executions[/+] on Mar 2, 2026
  4. changed the title [-]Queued prompts run when the agent responding previous prompt pauses for tool executions[/-] [+]Queued prompt(s) run when the agent responding previous prompt pauses for tool executions[/+] on Mar 2, 2026
  5. changed the title [-]Queued prompt(s) run when the agent responding previous prompt pauses for tool executions[/-] [+]Queued prompt(s) run when the agent responding previous prompt pauses for a tool execution[/+] on Mar 2, 2026
  6. changed the title [-]Queued prompt(s) run when the agent responding previous prompt pauses for a tool execution[/-] [+]Queued prompts dequeued prematurely at next tool call for the on going response[/+] on Mar 3, 2026
  7. changed the title [-]Queued prompts dequeued prematurely at next tool call for the on going response[/-] [+]Queued prompts dequeued prematurely[/+] on Mar 6, 2026
  8. sasindumendis commented on Mar 6, 2026

    @sasindumendis
    Author

    Just noticed queueing works as expected when OpenCode is used via Zed @thdxr

  9. assigned and unassigned on Apr 26, 2026
  10. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  11. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions