Fix queued messages during /review (#9122)

Sending a message during /review interrupts the review, whereas during
normal operation, sending a message while the agent is running will
queue the message. This is unexpected behavior, and since /review
usually takes a while, it takes away a potentially useful operation.

Summary
- Treat review mode as an active task for message queuing so inputs
don’t inject into the running review turn.
- Prevents user submissions from rendering immediately in the transcript
while the review continues streaming.
- Keeps review UX consistent with normal “task running” behavior and
avoids accidental interrupt/replacement.

Notes
- This change only affects UI queuing logic; core review flow and task
lifecycle remain unchanged.
This commit is contained in:
charley-oai
2026-01-13 11:23:22 -08:00
committed by GitHub
parent 40e2405998
commit 57ba758df5
3 changed files with 64 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
---
source: tui/src/chatwidget/tests.rs
assertion_line: 3840
expression: term.backend().vt100().screen().contents()
---
• Working (0s • esc to interrupt)
↳ Queued while /review is running.
⌥ + ↑ edit
Ask Codex to do anything
100% context left · ? for shortcuts