warp icon indicating copy to clipboard operation
warp copied to clipboard

Queue mode is ignored when sending code review comments to an in-progress agent

Open vkodithala opened this issue 7 months ago • 1 comments

Summary

Queue mode is not respected when code review comments are submitted to an agent that already has a task in progress. Instead of creating a queued code review action, the submitted review comments are sent immediately and appear to adjust the currently running task.

Problem

When a user has queue mode enabled, new agent requests should wait behind the in-progress task. Code review feedback currently appears to bypass that queueing behavior: sending comments from the Code Review flow immediately forwards the feedback into the active agent run. This makes it difficult to finish the current task unchanged and then handle code review feedback as the next discrete action.

Expected behavior

With queue mode enabled, submitting code review comments while an agent task is in progress should enqueue a separate code review action. The active task should continue without being modified by the review comments until the queued action is processed.

Actual behavior

Submitting code review comments sends them automatically to the agent immediately. The feedback adjusts the in-progress task instead of being queued as a separate code review action.

Reproduction steps or desired workflow

  1. Start an agent task and leave it in progress.
  2. Enable queue mode.
  3. Open the Code Review flow for the agent-generated changes.
  4. Add one or more code review comments.
  5. Submit/send the code review comments to the agent while the original task is still in progress.
  6. Observe that the comments are sent immediately to the active task rather than queued.

Artifacts

None attached.

Warp version

v0.2026.04.30.08.57.dev_00

Operating system

macOS 26.4.1 (build 25E253)

Possible source references

  • Warp docs: Interactive Code Review (https://docs.warp.dev/agent-platform/warp-agents/interactive-code-review) describes leaving multiple inline comments and submitting them to the agent as a batch. The issue appears specific to how that submitted batch interacts with queue mode while another agent task is already in progress.

vkodithala avatar May 02 '26 17:05 vkodithala

@vkodithala

Here's what I found while triaging this issue:

Thanks for the detailed repro. The code path for submitted code review comments appears to bypass the same queue-mode handling used by normal typed prompts, so this looks actionable without additional reporter info.

Maintainer details

I concluded that code review comment submission appears to bypass queue mode and route comments directly into the active agent task..

Triage summary

This looks like an actionable bug in the Agent + Code Review interaction rather than missing reporter information. Normal typed AI prompts check queue mode before sending, but submitted code review comments follow a separate routing path from the Code Review view into the selected terminal/agent.

Evidence

  • The report provides clear reproduction steps, Warp version v0.2026.04.30.08.57.dev_00, and macOS 26.4.1.
  • app/src/terminal/input.rs queues normal AI input via maybe_queue_input_for_in_progress_conversation when QueueSlashCommand is enabled, queue mode is active, AI input is enabled, and the selected conversation is in progress or blocked.
  • app/src/code_review/code_review_view.rs emits CodeReviewViewEvent::SubmitReviewComments for submitted review batches.
  • app/src/workspace/view/right_panel.rs routes that event to a terminal and calls either TerminalView::send_inline_review or TerminalView::send_review_to_cli_agent_or_rich_input.
  • app/src/terminal/view.rs sends built-in inline review comments through BlocklistAIController::send_custom_ai_input_query, while active CLI-agent review comments are converted to text and written to rich input or the PTY. Neither path checks BlocklistAIContextModel::is_queue_next_prompt_enabled() or uses WorkspaceAction::QueuePromptForConversation.

Likely fix direction

Code review submission should probably share the same in-progress queue decision used by typed AI prompts, or introduce an equivalent queued representation for AIAgentInput::CodeReview / CLI-agent review prompts so queue mode can defer the review batch until the active task completes.

Duplicate check

I enumerated open non-PR issues and recent closed issues. I found related code-review issues such as multiline review comments and diff-view problems, but not two existing issues matching the queue-mode bypass behavior closely enough to mark this as a duplicate.

This is my automated analysis and may be incorrect. A maintainer will verify the details.

Powered by Oz

warp-for-oss[bot] avatar May 02 '26 17:05 warp-for-oss[bot]