[Bug]: Cmd+Enter queues a follow-up instead of steering when follow-up behavior is Queue
Area
- [x] apps/web
Steps to reproduce
- Settings: Send shortcut Enter, follow-up behavior Queue (
sendShortcut: "enter",followUpBehavior: "queue"). Keybindings are the defaults, includingmod+enter→composer.sendAlternatewhencomposerFocus && turnRunning. - Start a Claude turn and wait until it is running.
- Type a follow-up and press Cmd+Enter.
Expected behavior
Cmd+Enter does the opposite of the default follow-up action, so with Queue as the default it steers the message into the running turn (resolveComposerDispatchMode returns "steer" for the alternate modifier).
Actual behavior
The message queues, the same as plain Enter. To steer it I have to press Steer on the queued message afterward.
The server trace shows this twice in a few minutes. Each time a plain message.dispatch (no steer spans) is followed about one second later by a manual queued-message.promote-to-steer, which steers successfully. So the run accepted steering; the Cmd+Enter send did not ask for it.
20:44:59 Orchestrator.dispatchMessage
20:45:01 Orchestrator.dispatchQueuedMessagePromoteToSteer
20:45:01 Orchestrator.dispatchSteerIntoRun -> ClaudeAdapterV2.steerTurn (Success)
20:53:09 Orchestrator.dispatchMessage
20:53:10 Orchestrator.dispatchQueuedMessagePromoteToSteer
20:53:11 Orchestrator.dispatchSteerIntoRun -> ClaudeAdapterV2.steerTurn (Success)
Root cause not confirmed. Reading main at 9826dbb990, the key path looks right (composerSubmissionIntentForKey → "alternate" → resolveComposerDispatchMode → "steer"). Places that can turn it into a queue on the client:
composerCommandKey.tspassescanSteer: !isCompacting, andplanComposerTurnforces"queue"whencompactBeforeSendorsendQueuesBehindSetupis true.- If the client
phaseis not"running", theturnRunningkeybinding context is false, socomposer.sendAlternatedoes not match and Cmd+Enter falls through to a plain send.
Possibly related: #26546 (a follow-up that should steer shows as an unlabeled queued bubble).
Impact
Major degradation or frequent failure
Version or commit
Desktop 0.1.4-nightly.20261028.3838
Environment
macOS, desktop app, Claude provider (Opus 5.5)
Workaround
Press Steer on the queued message, or Cmd+Shift+Enter (thread.steerQueuedMessage).
Filed with Claude Opus 5.5 in Claude Code, running in T3 Code.
Tried this on main at 9826dbb990. Your nightly (v0.1.4-nightly.20261028.3838) is 5 commits behind it, with no changes to the composer, keybinding, or dispatch code in between.
Setup: web client from source, fresh database, Send shortcut Enter, Follow-up behavior Queue, default keybindings. Each time I started a turn running sleep 90, then sent a follow-up while it ran:
- Codex (GPT-6-Astra), Linux, Ctrl+Enter: steered. The bubble showed Steer, and the server logged
dispatchSteerIntoRun→CodexAdapterV2.steerTurn. - Claude Opus 5.5, Linux, Ctrl+Enter: steered (
ClaudeAdapterV2.steerTurn). - Claude Opus 5.5, with
navigator.platformset toMacIntel, Meta+Enter: steered. - Control, plain Enter: queued, as expected.
None of these reproduced it. I found one path on main that sends Cmd+Enter as a plain queue while the server would still accept a steer: a send during automatic context compaction. While a compaction item is running, the composer passes canSteer: false, and every follow-up queues regardless of modifier or preference. That is https://git.cafe/pingdotgg/t3code/issues/24137.
To tell whether that's what you hit:
- At 20:44:59 and 20:53:09, did the timeline show Compacting context, or did the send button read Queue message instead of offering Steer?
- Does your trace show a Claude compaction around those times (a
compactionturn item, or astatus: compacting/compact_boundaryfrom Claude)? - Do you have a custom
keybindings.json, or any binding onmod+enter?
Closing: no reply in 7 days after we asked for more information. Comment with the missing details and we will reopen.
Found the cause. On macOS, holding Ctrl flips the send button to Steer, but Ctrl+Enter queues. Cmd+Enter steers correctly, which is why the Meta+Enter repro passed.
Repro (v0.1.10 stable desktop, macOS arm64; same code on main):
- Settings: Send shortcut Enter, Follow-up behavior Queue, default keybindings.
- Start a turn and wait until it is running.
- Type a follow-up and hold Ctrl: the send button switches to the Steer arrow.
- Press Ctrl+Enter: the message queues. Pressing Cmd+Enter instead steers.
Why:
ComposerPrimaryActions.tsxpreviews the alternate action withalternateModifier: shortcutModifiers.metaKey || shortcutModifiers.ctrlKey, so Ctrl counts on every platform. The button's click handler (ChatComposer.tsx,handleSubmitMessage) also acceptsevent.metaKey || event.ctrlKey.- The keyboard path resolves
mod+enter→composer.sendAlternate, and on macOSmodis Meta only (keybindings.ts). Ctrl+Enter matches no binding, socomposerSubmissionIntentForKeyreturns"foreground"and the send uses the default follow-up behavior (Queue).
Suggested fix: make the preview follow the keybinding, so on macOS only Cmd flips the button (or derive it from the resolved composer.sendAlternate shortcut). Otherwise Ctrl+Enter should also count as alternate on macOS. The ⌘-click tooltip already implies Cmd only.
Evidence from my machine: a message.dispatch queued at 13:18:06, then a manual queued-message.promote-to-steer at 13:18:09 that steered successfully (dispatchSteerIntoRun).
Could this be reopened?
Investigated with Claude Opus 5.5 (Claude Code) via t3 triage.