Repository navigation
Separate native chat draft and queued-card shortcuts - #28634
brennanb2025 wants to merge 3 commits into
Conversation
|
With queueing enabled, the old Cmd/Ctrl+Enter treated a typed draft like Enter, then changed targets to the newest queued card after the draft cleared. This draft separates those actions: Enter follows Queue / Steer, Cmd/Ctrl+Enter uses the opposite delivery for a typed draft while working, and Cmd/Ctrl+Shift+Enter sends the first waiting card while preserving unfinished typing. The review fixed three issues in
The queue capability remains off, and the QA-only change was restored. This remains a draft, unmerged, with a clean worktree; Brennan still owns the final sync with main before any merge. |
One shared resolver maps the follow-up setting and the alternate key to 'queue' | 'steer'. The composer resolves it and passes the result down, in place of a 'default' | 'alternate' intent carried through six layers.
|
Superseded by #36588, which ships the desktop queue and steer keys. The guard that refuses Cmd/Ctrl+Shift+Enter while a queued card's inline editor is open is tracked separately. |
ELI5
With queueing enabled, Cmd/Ctrl+Enter currently treats a typed draft like Enter, but an empty composer sends the newest queued card. The same key changes targets as the draft clears, and the queue setting reads as an on/off switch.
This gives drafts and queued cards separate shortcuts. Enter follows a Queue / Steer choice; Cmd/Ctrl+Enter uses the opposite choice for a typed draft while the agent works. Cmd/Ctrl+Shift+Enter sends the first waiting card and keeps unfinished typing. Empty Cmd/Ctrl+Enter does nothing. During Stopping, both draft keys follow Enter.
The queue capability stays off. A separate switch-on PR will enable queueing.
What Changed
src/shared/native-chat-follow-up-delivery.ts) turns the follow-up setting and the alternate key intoqueueorsteer, and the composer passes that result down the existing send path. Queue requests the existingqueue-if-activedelivery only on a compatible host; Steer keeps the existing direct send.Why
Separate shortcuts keep a second keypress from switching from “send my draft” to “send another card.” The existing send path preserves commands, attachments, in-flight protection and accepted-draft cleanup. The setting keeps its stored boolean, so no migration, host method or wire field is added.
Scope and rollout:
queueorsteer, with no separate "no turn running" result: thequeue-if-activerequest is already conditional on the host's own live turn, so the host makes that call; deciding it from this client's view of the turn would race the host (a second message sent while the first turn is still starting would steer instead of queue).Linked Issue
N/A (maintainer PR).
Visual Proof
Hidden local macOS Electron validation used Playwright CDP and Codex gpt-5.6-terra at medium effort, with disposable homes and a deterministic app-server stand-in. Queue capability was enabled only for QA and restored afterward. These captures show before/after actions on the branch, not a built-base comparison.
Typed Cmd+Enter joins the working turn:
Two waiting cards before the Shift shortcut:
The first card reaches the transcript, the second stays queued, and the draft remains:
First-card tooltip:
Send during Stopping:
QA partial: rendered evidence and stand-in requests prove Queue-mode draft delivery, Enter queueing, first-card delivery with draft preservation, tooltip, empty no-op, and settings rendering. The Stopping send was observed; equality with Enter in both settings is pinned by a sender test rather than a comparative UI run. No same-input rendered base comparison or separate chat run with Steer selected was completed. No Windows, Linux, SSH, phone, or live-provider UI validation was run. Fresh-profile onboarding notices in the captures are existing UI.
Testing
tc:webpassed through the machine queue.orca-ci-checksran before push: 19/22 checks passed. Remaining local failures are documented baseline/environment issues: missingnowin untouched Node code, obsolete Spanish catalog keys, and local Bun's missingcheckscript.515483f9a82eafbc1cfeff347c04348a682b145e.Review
Remains a draft and unmerged. Main was inspected without syncing it into this branch; the final main sync remains for Brennan.
Agent skill upstream boundary