Skip to content

Native chat: queue messages sent while the agent works (on by default, Settings toggle, Cmd/Ctrl+Enter to send one now) - #36588

Merged
brennanb2025 merged 29 commits into
mainfrom
brennanb2025/queue-switch-on-pr
Oct 31, 2026
Merged

brennanb2025 merged 29 commits into
mainfrom
brennanb2025/queue-switch-on-pr

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Native chat has a full message queue: cards, edit in place, drag to reorder, Paused · n with Resume and Clear all, image cards, and a queued /compact. But nobody could use it. The host never advertised the capability that lets a client ask for a message to wait, so every message sent while the agent was working went straight into the running turn. Settings showed no queue option at all.

What changes for users

  • Queueing turns on for every native-chat user. While the agent works, Enter now queues your message as a card that sends when the turn ends, instead of sending it into the running turn. Anyone who doesn't want that can turn it off in Settings.
  • Desktop keys:
    • Enter follows the Settings toggle.
    • Cmd/Ctrl+Enter with text sends that one message the other way: with queueing on, straight into the running turn (Steer). On an empty composer it does nothing.
    • Cmd/Ctrl+Shift+Enter steers the first waiting card into the running turn.
  • Phone: while the agent works, the Send button shows Queue or Steer. Hold it to choose: the menu lists what a tap does first, checked, then the other way, each with a one-line hint. Each choice sends once and dismissing sends nothing. The menu only appears when the two choices would actually differ (a waiting /compact or a question nobody here can answer decides for you). A tap follows the host's setting, and the phone picks up changes to it live.
  • Settings › Chat › Behavior: a "Queue follow-ups" toggle, on by default. Its description says Cmd/Ctrl+Enter does the opposite for one message. It shows only when this machine's host supports queueing.
  • Waiting cards read "Send" instead of "Steer" when the agent is idle, for example after Stop.
  • Removed: the card menu's "Turn off queueing" (the Settings toggle holds the choice). Also the Settings sentence "Messages with images send right away", which has been wrong since image messages started queueing.

How it works

  • Capability: the host now advertises the queue capability under a new name, agent-session.queued-messages.v2. Released desktops (1.4.219 and later) and older native phone builds read the old v1 name, which no host ever advertised, so they keep sending immediately. The v2 name stops their older, unfinished queue UI from turning on.
  • One per-send choice (alternate): it flips the setting for that one send only while the agent works and is not Stopping. The existing rules still apply after it: a waiting /compact holds later sends behind it, and prompts no one here can answer send immediately. The host still decides against the live session, as it already does for orchestration and automations. The phone's Send label and menu come from the same resolver, so they always say what the send will do.
  • The setting: the existing saved nativeChatQueueFollowUps boolean. Absent means on; an explicit off is kept. No new saved key and no migration. Every reader goes through src/shared/native-chat-follow-up-behavior.ts.
  • Phone follows the host live: the host publishes the value in the runtime client event stream snapshot and sends a nativeChatQueueFollowUpsChanged event when it changes, so an open phone page updates without a reconnect.
  • During Stopping: behaviour is unchanged. Neither key inverts, and the first-card chord does nothing.
  • First-card chord: Cmd/Ctrl+Shift+Enter acts on the head card only, once per press (holding it doesn't repeat). A command, a card already sending, or a held head does nothing; it never skips past the head.

Mixed versions

Pair Result
New client, older host No v2, so sends steer as today. No alternate; the toggle shows only when the local host is new
Released desktop 1.4.219+ or native phone build, new host Reads v1, so it keeps steering
Phone page served by a new host Gets v2, the host's queue setting and the hold-Send menu
Cached older phone page, new host Reads v1, so it steers
Cached newer phone page, older host No v2, so it steers

Differences from the common pattern

  • Intended: queueing is the default; the common pattern defaults to steering. Brennan's 10-30 ruling turns the queue on for every user, with a toggle to turn it off.
  • Intended: Settings shows one on/off switch rather than a Queue/Steer select. Same ruling ("make users able to turn it off via a setting (toggle)"); the saved value was already this boolean.
  • Temporary: the phone's Queue/Steer default follows the setting of the host it talks to, rather than a separate phone preference. In a server workspace that is the server's setting (on by default), which can differ from the desktop's. A phone-only preference is a product follow-up, tracked in STA-13101.
  • Intended: the phone's hold menu uses Orca's existing action sheet, the phone app's one menu surface, rather than a native context menu; same items, order, check mark and hints.
  • Intended: during Stopping, sends follow the existing Stop order rather than turning a steer into a queued message. Brennan settled the Stop order on 10-18 when he closed fix(native-chat): a message sent after Stop runs ahead of the paused cards #28652.
  • Intended: idle cards read "Send" and working cards read "Steer". The common pattern uses one "Send now" label; Orca keeps its Steer wording for a card going into a running turn (agreed in the 10-13 queue plan).
  • Intended: Cmd/Ctrl+Shift+Enter works from the chat's composer, as main's queued-card chord did, rather than anywhere in the thread; and it does nothing when the first card is a command, already sending or held, because the queue's pause and command order decide that card.
  • Temporary: while the agent works, the desktop's Stop button turning into the Send button once you type (no queue-specific label) is a separate follow-up PR, tracked in STA-13109.
  • Temporary: a Cmd/Ctrl+Enter send can run ahead of a queued /compact the sending client hasn't received yet; tracked in STA-13076, fixed by the follow-up Preserve queued command and card order through recovery #36430.
  • Temporary: an older native phone build sending while a /compact waits may show "Delivery unconfirmed"; Brennan decides after the queue lands, tracked in STA-13042.

Testing

  • Unit tests:
    • the per-send resolver (setting on and off × both choices, capability absent or unknown, Stopping, idle, a waiting command, unanswerable prompts);
    • the key chords, including Shift+Enter still adding a newline, Cmd/Ctrl+Enter on an empty composer doing nothing, and a held chord steering once;
    • Enter and Cmd/Ctrl+Enter driven through the real composer and session to the outgoing request's delivery, with queueing on and off; the same for the phone's tap and hold choices;
    • head-card selection and the idle Send label;
    • the Settings toggle (shown only with the capability, on when absent, explicit off kept), its description in both states and a translated case, and its search entry against the real capability list;
    • the phone hold-Send menu (each choice sends once, dismissing sends nothing, no menu when the choices can't differ) and the phone following the host's live setting;
    • the capability list (v2 advertised, v1 never).
  • The Codex card-steer settlement test now also asserts the card is steered exactly once and no new turn starts.
  • Electron QA with Claude and Codex, and phone QA, follow in the review status comment.

This PR carries only the queue switch-on, the phone changes and the queue-on default from #36430; the host ordering work stays in #36430.

Released clients read the v1 name with an unfinished queue UI; they never
see v2 and keep sending immediately.

(cherry picked from commit f39382e)
The follow-up choice is now a Queue / Steer setting saved under
nativeChatFollowUpBehavior, Steer by default; the old
nativeChatQueueFollowUps switch, which every install saved as true
while queueing was dark, is retired on load. Every reader goes through
native-chat-follow-up-behavior.

While the agent works, Enter follows the setting and Cmd/Ctrl+Enter
sends the draft the other way; the alternate flips the setting before
the queue's own rules (a waiting command still queues, prompts no one
here can answer still send now) and never applies while Stopping.
Cmd/Ctrl+Shift+Enter steers the head card only and leaves the draft.
An idle agent's card reads Send, and the card menu no longer offers
"Turn off queueing".

(cherry picked from commit 55b4869)
While the agent works on a host that queues, holding Send opens a
Queue / Steer sheet; a choice other than the host's setting sends the
alternate, resolved against the chat as it is when it lands, by the
desktop's rule. Release and dismiss send nothing. The phone reads the
host's new follow-up setting (absent reads as Steer), and an idle
agent's card reads Send.

(cherry picked from commit db87cf5)
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 436b1ff0-aa2d-4bd8-a0b4-9c3b25ff783c
Commits

Reviewing files that changed from the base of the PR and between be27d15 and df44a46.

Files selected for processing: 5
  • src/renderer/src/components/native-chat/native-chat-composer-composition.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-ime-file-drop.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-mobile-hold.test.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-workspace-file-drop.test.tsx
  • src/renderer/src/components/settings/ChatBehaviorSetting.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Walkthrough

The change adds Queue and Steer choices to native-chat sending on desktop and mobile. Alternate-send intent now affects queue selection, and desktop steering targets the head eligible queued card. Runtime snapshots and change events expose the follow-up preference. Mobile composers receive send-menu state and working status. Localization, contracts, persistence, and tests are updated.

Merge Risk: Low · up to df44a

A narrow reconnect path can lose its ready snapshot when runtime settings are unavailable; the changed tests themselves introduce no additional production risk.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 24.32% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description clearly explains the problem, user-facing changes, implementation, compatibility behavior, testing, and known limitations. It does not follow the required template because it omits the… Update the description to include every required template section. Add an actual linked issue under ## Linked Issue using Fixes #<issue-number>, attach before-and-after screenshots or videos under ## Visual Proof, or write N/A with …
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: native-chat queueing by default, the Settings toggle, and the shortcut for sending one message immediately.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 24.32% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 37 functions across 71 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description clearly explains the problem, user-facing changes, implementation, compatibility behavior, testing, and known limitations. It does not follow the required template because it omits the ELI5, Why, Linked Issue with a Fixes #... entry, Visual Proof, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Visual proof is required for this UI and behavior change.

Resolution

Update the description to include every required template section. Add an actual linked issue under ## Linked Issue using Fixes #&lt;issue-number&gt;, attach before-and-after screenshots or videos under ## Visual Proof, or write N/A with a reason only if there is no visual or interaction change. Add the required testing checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist content. Rename or supplement ## Problem with the required ## ELI5 and ## Why sections so the plain-language explanation and rationale are explicit.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 398db22e-4081-4890-8451-efce368a7cb3
Commits

Reviewing files that changed from the base of the PR and between 0ef88c1 and 9e3261d.

Files selected for processing: 125
  • mobile/src/components/composer-input/ComposerSendButton.tsx
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/session/MobileNativeChatOverlay.tsx
  • mobile/src/session/MobileNativeChatView.prompt-presentation.test.ts
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/MobileQueuedMessageCardRow.tsx
  • mobile/src/session/__mocks__/mobile-prompt-controller.ts
  • mobile/src/session/__mocks__/mobile-prompt-render-mocks.ts
  • mobile/src/session/mobile-closed-tab-dictation-lifetime.test.tsx
  • mobile/src/session/mobile-file-search-owner-cleanup.test.tsx
  • mobile/src/session/mobile-follow-up-preference.test.tsx
  • mobile/src/session/mobile-native-chat-controller-contract.ts
  • mobile/src/session/mobile-native-chat-follow-up-preference.ts
  • mobile/src/session/mobile-queued-edit-hook.test-fixture.tsx
  • mobile/src/session/mobile-structured-agent-session-contract.ts
  • mobile/src/session/mobile-structured-agent-session-send.ts
  • mobile/src/session/mobile-structured-agent-session-working.ts
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.structured.test.ts
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.test.ts
  • mobile/src/session/native-chat/composer/MobileNativeChatComposer.tsx
  • mobile/src/session/native-chat/composer/MobileNativeChatSendButton.tsx
  • mobile/src/session/native-chat/composer/mobile-native-chat-draft-inputs.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-composer-tray.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-image-attachments.ts
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessages.test.tsx
  • mobile/src/session/native-chat/input/MobileNativeChatQueuedMessages.tsx
  • mobile/src/session/native-chat/mobile-native-chat-send.ts
  • mobile/src/session/use-mobile-native-chat-controller.ts
  • mobile/src/session/use-mobile-native-chat-queue-follow-ups.ts
  • mobile/src/session/use-mobile-session-image-attachments.ts
  • mobile/src/session/use-mobile-structured-agent-session-background-tasks.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session-newer-approval-send.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session-queued.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session-read-failure.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session-retry-rows.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session-send.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session.cut-turn-notice.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session.ts
  • mobile/src/session/use-mobile-structured-native-chat-send-bridge.ts
  • mobile/src/session/use-mobile-structured-send-with-outcome.ts
  • mobile/src/session/use-mobile-structured-sends.test.tsx
  • mobile/src/session/use-mobile-structured-turn-indicator.test.tsx
  • mobile/src/session/use-mobile-structured-turn-indicator.ts
  • mobile/src/transport/settings-read-operations.test.ts
  • mobile/src/transport/settings-read-operations.ts
  • src/main/persistence/applying-settings/persistence-settings-ui-defaults.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/remote-runtime-request-connection.integration.test.ts
  • src/main/runtime/rpc/methods/client-events.ts
  • src/main/runtime/rpc/methods/structured-agent-session-legacy-command-wait.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-queued-edit.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-queued-methods.ts
  • src/main/runtime/runtime-client-settings.ts
  • src/main/runtime/runtime-native-chat-follow-up-events.test.ts
  • src/main/runtime/runtime-native-chat-follow-up-events.ts
  • src/main/runtime/structured-agent-session-codex-turn-end-settlement.test.ts
  • src/renderer/src/components/native-chat/NativeChatAgentMessageRow.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerPane.tsx
  • src/renderer/src/components/native-chat/NativeChatInterruptedContinue.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageCard.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageComposer.raw-task.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageList.arrival.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageList.inline-edit.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.stopping.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.test-harness.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/components/native-chat/native-chat-structured-composer-dispatch.ts
  • src/renderer/src/components/native-chat/native-chat-structured-stop-controls.ts
  • src/renderer/src/components/native-chat/native-chat-submission-navigation.test.tsx
  • src/renderer/src/components/native-chat/structured-agent-session-queue-request.test.ts
  • src/renderer/src/components/native-chat/structured-agent-session-queue-request.ts
  • src/renderer/src/components/native-chat/structured-agent-session-send-slot.ts
  • src/renderer/src/components/native-chat/structured-agent-session-view-contract.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-edit-session.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-keydown.steer.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-keydown.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-submit.ts
  • src/renderer/src/components/native-chat/use-native-chat-structured-composer-send.ts
  • src/renderer/src/components/native-chat/use-structured-agent-session-queued-messages.test.tsx
  • src/renderer/src/components/native-chat/use-structured-agent-session-queued-messages.ts
  • src/renderer/src/components/native-chat/use-structured-agent-session-sends.test.tsx
  • src/renderer/src/components/native-chat/use-structured-agent-session-sends.ts
  • src/renderer/src/components/native-chat/use-structured-agent-session.queued-gating.test.tsx
  • src/renderer/src/components/native-chat/use-structured-agent-session.ts
  • src/renderer/src/components/native-chat/use-structured-native-chat-submit-reveal.test.ts
  • src/renderer/src/components/native-chat/use-structured-native-chat-submit-reveal.ts
  • src/renderer/src/components/settings/ChatBehaviorSetting.test.tsx
  • src/renderer/src/components/settings/ChatBehaviorSetting.tsx
  • src/renderer/src/components/settings/chat-behavior-search.ts
  • src/renderer/src/hooks/ipc-events/runtime-client-ipc-bridge.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/runtime/runtime-client-events.test.ts
  • src/shared/agent-session-runtime-capabilities.ts
  • src/shared/agent-session-wire.ts
  • src/shared/global-settings-types.ts
  • src/shared/native-chat-follow-up-behavior.ts
  • src/shared/rpc-contract/structured-agent-session-params.ts
  • src/shared/runtime-client-events.ts
  • src/shared/structured-agent-session-queued-cards.test.ts
  • src/shared/structured-agent-session-queued-cards.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

The Settings description said Cmd/Ctrl+Enter sends into the running
turn, which is wrong while the switch is off. Describe it as doing the
opposite for one message, in every language.
…en it differs

While the agent works, the phone's Send button now shows Queue or Steer.
Holding it lists that action first with a check and the other second,
each with a one-line description, and appears only when both choices
would actually lead to different sends. A waiting command or prompts
nobody here can answer make a hold behave like a tap.
Holding Cmd/Ctrl+Shift+Enter auto-repeats the key, which steered each
card that became the head in turn. Ignore the repeats.
While a turn runs and the draft has something to send, a send control
now sits beside Stop. Its icon and label say whether Enter queues the
message or steers it into the running turn, and its tooltip names Enter
and, when it would send differently, Cmd/Ctrl+Enter. Clicking it sends
as Enter does. Stop keeps its place and nothing changes while Stopping,
with an empty draft, or before the host says it queues.

The phone and desktop now read what a send does from one shared helper
over the send's own resolver.
One desktop test drives Enter and Cmd+Enter through the real composer,
transport and session to the outgoing send and checks its delivery with
queueing on and off. Settings search is checked against the capability
list this build's host advertises.
The pane had grown past the file length limit after the main merge.
While an image is still loading, another device holds the input, or a send is blocked for a stated reason, the button beside Stop is now disabled and says why, the same way the idle Send button does. Before, it stayed clickable and a click did nothing.
In goal mode Enter sets the goal, so a button promising to queue or steer the message was wrong. It is now hidden there, as it already is while editing a queued message.
It read as queueing until the end of this turn.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 576f2527-6f41-477e-ba3c-a727a74d6d34
Commits

Reviewing files that changed from the base of the PR and between 5ca2298 and 63b8771.

Files selected for processing: 3
  • src/renderer/src/components/native-chat/NativeChatComposerPane.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/i18n/locales/en.json
Files skipped from review as they are similar to previous changes: 1
  • src/renderer/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

…on send the other way, like Cmd/Ctrl+Enter

The button shows the other action while the modifier is held, and its tooltip names the click. Only when the other way would send differently; otherwise a modified click is a plain send.
…nd buttons a Button size instead of restyling them

The focused code-quality check rejects importing one module twice, and the design-system check rejects rounded-full on a <Button>, which the new Queue/Steer button copied from Send. Both composer buttons now use a round icon size on the Button primitive and render as before.
… and count Cmd/Ctrl as held only from its own key press

Each mounted chat with a mid-turn draft used to add its own window key listeners, so every keystroke did work per chat, hidden tabs included. One shared listener set now serves them all and wakes a button only when the held state really changes.

Other keys can now only clear the held state, so a dictation paste that leaves the Cmd flag on later key events no longer flips the button with Cmd up. Also tests the Ctrl-click on Windows and Linux.
…nt works

While the agent works, the desktop composer goes back to its usual
controls: Stop, with Enter and the send shortcuts doing what they did.
Enter still follows the queue setting, Cmd/Ctrl+Enter still sends one
message the other way, and Cmd/Ctrl+Shift+Enter still steers the first
queued card.

This also removes what only that button used: its Cmd/Ctrl-click
alternate, the shared Cmd/Ctrl key listener, the extra round Button
size, the send-preview value the desktop session passed to the
composer, and the button's text in every language. The phone is
unchanged.
The separate send-hold helper only existed because the removed mid-turn
Queue/Steer button pushed the pane over the file-length limit. Without the
button the pane fits again, so it goes back to main's inline code.
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review status

The problem. Native chat already had a full message queue (cards, edit, reorder, Paused · n with Resume, image cards, queued /compact), but the host never advertised the capability, so every message typed while the agent worked went straight into the running turn.

What users get. Queueing is on for every native-chat user. Enter mid-turn queues a card that sends when the turn ends; Cmd/Ctrl+Enter sends that one message straight in; Cmd/Ctrl+Shift+Enter steers the first card. Settings › Chat › Behavior has a "Queue follow-ups" toggle (on by default). On the phone, the Send button shows Queue or Steer mid-turn and holding it offers both. Idle cards read "Send".

What review changed (3 review rounds, then post-limit fixes, each re-reviewed):

  • Phone: the Send button shows Queue/Steer mid-turn; the hold menu lists the tap's action first with a check and a hint for each, and only appears when the two choices would actually differ.
  • Settings description is right in both states ("Cmd/Ctrl+Enter does the opposite for one message"), in all 11 languages.
  • The first-card chord steers once per press (holding it doesn't repeat).
  • Tests that follow Enter, Cmd/Ctrl+Enter and the phone's choices to the outgoing request; tests for the Settings search entry and the phone's capability mapping against the real capability list.
  • A desktop Queue/Steer button beside Stop was tried and then removed on Brennan's 10-31 ruling ("It should not show anything queue-specific in that button but it should turn into the send button when something's typed. Instead of the stop button. That can be a separate PR"). The desktop composer's controls are byte-identical to main's; the Stop-to-Send swap is a separate PR, tracked in STA-13109.
  • PR description now labels every difference from the common pattern.
  • Main's broken release-cut permissions test (after ci: remove dependency review Slack notification job #36611) was fixed separately in ci: drop the removed notify job from the release-cut permissions test #36621.

Deferred / for Brennan:

  • After a restart, cards paused by Stop come back as "Queued · n" with no Resume, and sending one sends the rest after its reply (seen in QA with Claude and Codex). This is main's existing restart rule (the pause is lifted by the next accepted turn), now easy to reach because queueing is on; nothing sends by itself. Not changed here.
  • Phone in server workspaces follows the server's queue setting, not the desktop's: Temporary, tracked in STA-13101.
  • Older native phone builds with a waiting /compact (STA-13042) and a Cmd/Ctrl+Enter send passing an unseen queued /compact (STA-13076, fixed in Preserve queued command and card order through recovery #36430): Temporary as before.
  • Minor: on the phone the Send label can read plain "Send" in the instant between a turn ending and the next card sending (the send itself is right).

Verified. Electron QA on the M4Air (ticket 3727) at be27d1549b0 with real Claude and Codex: every planned flow passed — Enter queues and drains in order (including an image message), Cmd/Ctrl+Enter steers, a card's Steer goes in once, Stop during a hand-off returns the card paused and never resends it, Stop with cards shows Paused · 2 and Resume drains in order, the toggle off flips Enter and Cmd/Ctrl+Enter, the first-card chord leaves the draft alone, a queued /compact runs before the text behind it, chats made on main survive the upgrade, the phone's hold menu sends each choice once and dismissing sends nothing, and the Japanese Settings screen reads correctly. All 18 changed mobile test files pass (218 tests). QA ran at be27d1549b0; commits since then change shipped code only in the desktop composer, a tests-row flow: 22cc9a039d3, 924105e9c70 and c6046b1b845 added Cmd/Ctrl-click and a shared key listener to the mid-turn button, and ce94239a250 and e0636aa907a removed that button again, so the composer's controls now match main byte for byte (renderer and keydown tests, 68/68 in the final review; the through-test checks delivery for Enter and Cmd/Ctrl+Enter with queueing on and off). df44a46670c is test-only; 76ad6389774 merges main (CI green on it).
Not verified: the macOS dictation case behind the modifier rule (covered by a unit test only).

For Brennan's review

Enter queued a card (Codex) codex-F1-card.png
Cmd+Enter steered (Codex) codex-F1-steer.png
Stop during hand-off: card back paused claude-F3-after-stop.png
Paused · 2 with Resume, idle cards read Send claude-F4-paused.png
Settings toggle claude-F5-settings-on.png
Cmd+Shift+Enter steered the first card, draft kept codex-F6-after-chord.png
Queued /compact then text codex-F7-cards.png
After restart: Queued · 2, no Resume (main's rule) F8-after-restart-claude.png
Main for comparison: a mid-turn send goes straight in F8-main-midturn-codex.png
Phone hold menu F9-1b-hold-sheet.png
Japanese Settings claude-F10-ja-settings.png

Judgment spots:

@brennanb2025
brennanb2025 merged commit 0d94c0b into main Oct 31, 2026
64 checks passed
LuweiLiao added a commit to LuweiLiao/orca that referenced this pull request Oct 31, 2026
@brennanb2025
brennanb2025 deleted the brennanb2025/queue-switch-on-pr branch November 1, 2026 02:01
brennanb2025 added a commit that referenced this pull request Nov 5, 2026
… works (#38317)

* fix(mobile): the chat Send button keeps desktop's arrow while the agent works

#36588 swapped the phone's send icon and label for Queue or Steer while
a turn ran; desktop keeps the plain Send arrow and offers the other way
through Cmd/Ctrl+Enter. The phone now matches, with hold as its
alternate.

* test(mobile): the send button keeps its arrow while the agent works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant