Skip to content

Queue by default in the desktop chat; Ctrl+Enter steers with the queue - #530

Merged
quanticstudios merged 1 commit into
mainfrom
queue-steer-keys
Nov 22, 2026
Merged

quanticstudios merged 1 commit into
mainfrom
queue-steer-keys

Conversation

@quanticstudios

Copy link
Copy Markdown
Owner

The desktop chat queues by default again, and Ctrl+Enter steers with the queue. Enter while the agent works puts the message above the box at once, under a line that says it goes when the turn ends, so it never looks swallowed. Ctrl+Enter (Cmd+Enter on macOS) sends the draft into the running turn with every queued message ahead of it, in order, as one steer, and the queue empties.

What Ctrl+Enter did before

With the default follow_up = "steer" (from #512), Enter steered the draft alone into the running turn and Ctrl+Enter queued it above the box. Ctrl+Enter on an empty box did nothing. Ctrl+Shift+Enter sent the oldest queued message into the turn. For an agent that takes nothing mid-turn (a New task Antigravity chat over ACP), Ctrl+Enter stopped the turn and sent the message first.

Keys now

Default (follow_up = "queue") follow_up = "steer"
Enter, agent working Queue; the row shows at once Steer, the queue going along
Ctrl+Enter, agent working Steer: queued messages, then the draft, as one message Queue
Ctrl+Enter, empty box Steer the queue alone ("Nothing queued to steer" if there is none) Nothing
Ctrl+Enter, idle Send with the queue first, as one turn Queue key; idle sends as Enter does
Enter, idle Send as before Send, the queue first
  • With send_key = "ctrl+enter" the steer key is Ctrl+Shift+Enter, and it steers the queue on an empty box too. In steer mode Ctrl+Shift+Enter on an empty box still sends the oldest queued message.
  • A queued slash or ! command keeps its place and is never joined. A command typed in the box steers alone, without the queue.
  • The placeholder names the keys ("Type to queue a follow-up · Ctrl+Enter steers it in now"). So do the button's tooltip and the queue line ("Queued: goes when the turn ends · Ctrl+Enter steers it in now", or "The next 2 go as one message when the turn ends · …").

How each agent takes a steer

  • Pane chats (Claude Code, Codex and Antigravity TUIs): the joined text goes in as one steer letter, as Send now on a row did. Claude Code takes it once its running tool returns, Codex at once, Antigravity through Alt+M. If the pane is mid-menu, the joined message waits in the queue as one row and goes once the menu closes.
  • New task chats: Claude and Codex steer through their drivers. Antigravity over ACP takes nothing mid-turn. There Ctrl+Enter queues, the composer says "This agent takes nothing mid-turn: queued, it goes when the turn ends", and the placeholder and queue line say so too. Nothing stops its turn any more. Send now on a queued row still stops the turn first, as its tooltip says.
  • The phone page and app send with no How, so they already queue mid-turn and needed no change.

Changes

  • proto: ChatSend.Join, Level 99 (JoinLevel). Version stays 18. An older GUI never sets it. With an older daemon the GUI steers the draft alone and leaves the queue in place.
  • daemon: chatJoin (New task chats) and paneSend with Join (pane chats) take the joinable rows out of the queue, join them with the draft through the same code the turn-end join uses (joinMessages: image tokens and pasted-text numbers renumbered, attachments kept unique), and send one steer. If the send fails, the rows go back as they were. Idle, the join starts a turn at once, even over a failed or held queue. It never starts one while a question or approval is pending. The join happens in one message, not a queue plus a steer, so a pane queue that starts typing a row on its own can't split it.
  • config: [chat] follow_up defaults to queue; an unknown value falls back to queue. An explicit "steer" keeps the swapped keys. The Settings picker (Queue | Steer) stays, with new text.
  • composer: submit and steerQueue pick the key paths. queuedNow shows a queued message in the strip before the chat lists it, with no actions, until it appears or 5 s pass. takeQueue hides the joined rows at once and brings them back if the daemon refuses. followUp no longer stops a turn on Ctrl+Enter for an agent that can't steer.
  • Docs: docs/chat.md, docs/keys.md, docs/config.md, README, CHANGELOG.

Untouched and still tested: the slash menu (Enter picks a row), question cards (Enter answers), Shift+Enter newline, image paste, edit-and-resend (Alt+Up), and the queue's Send now, Edit, Move, Send separately, Remove.

Screenshots

Rendered headless (PITWALL_QUEUE_SHOTS=dir go test ./internal/ui/chatin -run TestJoinSteerShots).

A message Enter just queued, shown before the chat lists it:

queued at once

follow_up = "steer":

steer mode

An agent that takes nothing mid-turn, after Ctrl+Enter:

can't steer

Working, nothing queued:

placeholder

Tests

  • internal/ui/chatin/joinsteer_test.go: each key path in queue mode, steer mode and with send_key = "ctrl+enter". Covers the instant queued row, the join hiding rows and a refusal restoring them, the empty-box steer, a command steering alone, idle sends, an agent that can't steer, an old daemon, and the placeholder, hint and tooltip text.
  • internal/daemon/joinsteer_test.go: the New task join (order, image renumbering, commands, skills and sending rows kept; an empty draft; refused and unsupported steers), the idle join over a failed turn, and a pane join on Antigravity that types the rows then the draft with one Alt+M, the command left queued. Also joinRows, chatJoinable and chatUnjoin.
  • internal/config/chat_test.go: the queue default, explicit steer, and the fallback.
  • gofmt, go vet ./... and go test ./... pass. Under load, TestFleetRespawnKeepsGuard, TestGuardGateExtensions and TestBinaryHook timed out once in a full run, then passed alone and in a rerun of their packages.

Not run: real Claude Code, Codex or agy against a temp daemon. Steering reuses the existing steer letter and driver paths; only the joined text is new.

🤖 Generated with Claude Code

Enter while the agent works queues the message again ([chat] follow_up
defaults to queue), and the composer shows it above the box at once,
under a line that says it goes when the turn ends. Ctrl+Enter steers:
the draft goes into the running turn with every queued message ahead of
it, in order, as one message, and the queue empties. On an empty box it
steers the queue alone; idle, it sends with the queue first. A queued
slash or ! command keeps its place. follow_up = "steer" swaps the keys.

The join happens in the daemon in one ChatSend (new Join field, level
99), so a pane queue that starts typing a row on its own cannot split
it, and a refused steer puts the rows back. An agent that takes nothing
mid-turn now queues on Ctrl+Enter with a note instead of stopping its
turn. The placeholder, the button's tooltip and the queue line name the
keys.
@quanticstudios
quanticstudios merged commit 3af1bc0 into main Nov 22, 2026
@quanticstudios
quanticstudios deleted the queue-steer-keys branch November 22, 2026 22:00
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