Skip to content

Composer: Enter queues while the agent works, Steer steers (#433) - #559

Open
MopigamesYT wants to merge 1 commit into
devfrom
fix/433-queued-messages
Open

MopigamesYT wants to merge 1 commit into
devfrom
fix/433-queued-messages

Conversation

@MopigamesYT

@MopigamesYT MopigamesYT commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Closes #433

What changed

  • Desktop: Enter during a task adds the message to the queue tray ("N queued for the next turn"). It is sent as the next turn once the task is completely over. Steer and Ctrl+Enter still give it to the agent at its next step, shown greyed at the end of the conversation. Before, Enter put it with the steered messages, so Claude Code got it mid-turn.
  • Server (/api/send): while a chat runs, mode steer joins the task, and send or queue waits for its end. It used to steer whatever the client asked. The phone bridge in the desktop (remoteSend) does the same.
  • The agent side already kept the two apart (Inbox.Steer between tool calls, Inbox.Next only when the turn ends), for Claude Code and the other providers.
  • Behaviour change: this reverses f755056 ("Messages sent while the agent works join it at its next step"), as Queued messages are sent instantly instead of waiting for the end of the task (Claude Code) #433 asks.
    • The Android app sends steer while a chat runs, so it is unchanged.
    • The desktop's remote mode and the web client send send on Enter, so they now queue.

Screenshots

Taken on the linux-test VM: Enter on "then run the tests" while the agent streams an answer.

dev: steered this PR: queued
dev: Sent at the next step this PR: 1 queued for the next turn

Checked here: go test ./internal/ui ./internal/server, go vet, gofmt. Both new tests fail before the fix. Run in the real app on the linux-test VM with an OpenAI-compatible mock model (screenshots above). Not run here: a real Claude Code turn.

Assisted-by: Claude Opus 5.5 medium

🤖 Generated with Claude Code

Every message sent during a task joined it at its next step: Enter put
it with the steered ones, and the server and the phone bridge steered
whatever mode the client asked. Enter (mode "send" or "queue") now waits
in the queue tray and becomes the next turn once the task is over;
Steer and Ctrl+Enter (mode "steer") still join the running task.

Tests: TestEnterQueuesAndSteerSteers, TestSendWhileRunningQueuesOrSteers
(both fail before the fix).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants