Repository navigation
Keep the queue steer shortcut aligned with displayed messages - #37166
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
No actionable comments were generated in the recent review.
|
|
Review loop status: Keep the queue steer shortcut aligned with displayed messages The problem. In native chat, Cmd/Ctrl+Shift+Enter sends the first queued message into the running turn. After you dragged a queued message to the top, the list showed the new order right away, but until the host published the move the shortcut still sent the message that used to be first. Separately, if you were editing the first queued message inline, the shortcut sent its old saved text and left your edit stale. Both came from the shortcut choosing its target separately from what the list shows (it read the host's raw order and ignored the open editor). What changes for users. The shortcut now sends the message shown first, including while a reorder is still on its way. While the first message is being edited, the shortcut does nothing; Save or Cancel brings it back. Editing a later message leaves the shortcut working on the first one. The composer draft and the unsaved edit are kept. Phone has no such shortcut and is unchanged. Review. Full path, one round: an adversarial correctness reviewer (every caller, the false-return path, scope switches, editor lifecycle, sending/paused/command heads) and an architecture challenger (own design from the tickets, both references, history) each found nothing to fix. A fresh reference comparison found no unlabelled differences. Fixed: nothing needed. Deferred: none. Verified. The new tests fail on main (3 of 16) and pass on the branch (16 of 16); the six related test files pass (117 tests). CI: green on the merged head 44efebe (Merge origin/main, no conflicts; static analysis and typecheck, all 12 test shards, mac and Windows packaging pass). Review and evidence cover 17a857a; the main merge since changed nothing in this PR's files. QA: tests only (keyboard shortcut selection in the composer; no layout or copy change, so no screenshot). Not verified. No running-app run; the review typed this flow as renderer-tested. Differences from the common pattern (intended). The shortcut stays available during a pending reorder and sends the displayed message's ID (the ticket requires that window; the host applies the move and the send one at a time per session, and the send names its message explicitly). The edited first message is protected from the shortcut (the ticket asks for it; neither reference guards this). For Brennan's review
|
Dragging a queued message to the top of native chat could leave Cmd/Ctrl+Shift+Enter sending the message that used to be first. The same shortcut could also send a card's saved text while its inline editor held unsaved changes.
The shortcut now targets the first displayed card, including while a reorder is waiting for the host to publish it. While the first card is being edited, the shortcut does nothing. Save or Cancel restores it. Editing a later card leaves the first card's shortcut available. The composer draft and the editor's unsaved text are preserved.
Plan: use the displayed queue as the source for shortcut selection, and check whether that card is the one being edited. No saved fields, wire changes, or implicit save-and-send behavior. The ordering plan received independent review and a fresh check before implementation.
Intended difference from the common pattern: the shortcut remains available while a reorder is pending and sends the displayed card's explicit ID. STA-13165 explicitly requires this window; the host processes changes one at a time per session. Intended edited-head protection: STA-13119 requires preserving unsaved text when this shortcut is pressed from the main composer. Queued-message editing retains its existing inline Save/Cancel; the shortcut does nothing for the card being edited (STA-13119).
Review path: full.
QA classification: Native chat UI,
qa=tests. Renderer tests cover a move in flight, an accepted move before host publication, unsaved edits on the first or a later card, and the existing shortcut on an unedited first card while a later card is edited. Existing named queue, edit, reorder, and keyboard tests cover surrounding behavior. No agent transport code changes. No phone change: mobile actions already send explicit card IDs and have no steer-head shortcut.Tracked in STA-13165 and STA-13119.
Intended, pre-existing: inside the inline editor, the steer-head chord does nothing; use Save to update the queued text. This PR preserves that behavior.
Intended, pre-existing and unchanged: a press is refused only when that same message already has an action on its way, not while a different message is busy; host, capability and session checks still gate the shortcut as before, because desktop and paired hosts can run different versions.
Validation: the new tests fail on main (3 of 16: both reorder windows send the old first message, and the shortcut sends the edited first message's saved text) and pass on this branch (16 of 16). The six named queue-message, reorder, inline-edit, list and platform-shortcut test files pass (117 tests). CI tests and packaging pass.