Skip to content

[Bug]: Cmd+Enter queues a follow-up instead of steering when follow-up behavior is Queue #26650

Closed as not planned

Description

@Dwite

Area

  • apps/web

Steps to reproduce

  1. Settings: Send shortcut Enter, follow-up behavior Queue (sendShortcut: "enter", followUpBehavior: "queue"). Keybindings are the defaults, including mod+enter → composer.sendAlternate when composerFocus && turnRunning.
  2. Start a Claude turn and wait until it is running.
  3. 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 9826dbb, the key path looks right (composerSubmissionIntentForKey → "alternate" → resolveComposerDispatchMode → "steer"). Places that can turn it into a queue on the client:

  • composerCommandKey.ts passes canSteer: !isCompacting, and planComposerTurn forces "queue" when compactBeforeSend or sendQueuesBehindSetup is true.
  • If the client phase is not "running", the turnRunning keybinding context is false, so composer.sendAlternate does 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.

Activity

  1. juliusmarminge commented on Oct 28, 2026

    @juliusmarminge
    Member

    Tried this on main at 9826dbb. 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:

    1. Codex (GPT-6-Astra), Linux, Ctrl+Enter: steered. The bubble showed Steer, and the server logged dispatchSteerIntoRun → CodexAdapterV2.steerTurn.
    2. Claude Opus 5.5, Linux, Ctrl+Enter: steered (ClaudeAdapterV2.steerTurn).
    3. Claude Opus 5.5, with navigator.platform set to MacIntel, Meta+Enter: steered.
    4. 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 compaction turn item, or a status: compacting / compact_boundary from Claude)?
    • Do you have a custom keybindings.json, or any binding on mod+enter?
  2. added
    needs more info
    on Oct 28, 2026
  3. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    Closing: no reply in 7 days after we asked for more information. Comment with the missing details and we will reopen.

  4. Bishi commented on Nov 18, 2026

    @Bishi

    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):

    1. Settings: Send shortcut Enter, Follow-up behavior Queue, default keybindings.
    2. Start a turn and wait until it is running.
    3. Type a follow-up and hold Ctrl: the send button switches to the Steer arrow.
    4. Press Ctrl+Enter: the message queues. Pressing Cmd+Enter instead steers.

    Why:

    • ComposerPrimaryActions.tsx previews the alternate action with alternateModifier: shortcutModifiers.metaKey || shortcutModifiers.ctrlKey, so Ctrl counts on every platform. The button's click handler (ChatComposer.tsx, handleSubmitMessage) also accepts event.metaKey || event.ctrlKey.
    • The keyboard path resolves mod+enter → composer.sendAlternate, and on macOS mod is Meta only (keybindings.ts). Ctrl+Enter matches no binding, so composerSubmissionIntentForKey returns "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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions