Composer: Send steers, Send now on a waiting message (#233) #239

Merged
cmoriarty merged 1 commit from feat/233-steer-send into main 2026-10-22 04:02:12 -04:00
Owner

Closes #233.

  • Send replaces Queue. While the agent works it steers the message into the turn in flight (delivery: steer, read at the agent's next step); when the agent is idle or waiting on its own question it is the next turn (queue), and nothing is aborted. Ported from run #99's branch (its review found it correct; it was abandoned only because of the CI infra problems fixed in #236).
  • The Redirect button is gone. A sent message the agent has not read yet shows Send now, which posts the same message id with a new mode now. The engine checks the session's inbox and, only while the message is still waiting, calls opencode's interrupt?resume=true: the call in flight ends and the waiting steer is delivered at once, then the agent goes on. A message read in the meantime needs nothing, and the turn is not stopped for it. ⌘⏎/Ctrl+⏎ still stops the turn and sends what is typed.
  • Verified live against opencode 2.1.2 through Braid's own client: a steer waiting behind a 30 s sleep was delivered 0.2 s after Send now and answered.
  • A steered message's user turn is now attributed to the operator in the transcript (the port had missed human.steer_prompt there).

Tests: unit 4747 passed; vitest 972 passed; browser lane 372/373, the one failure (lapsed-question.spec.ts, a gate card slow to close) passes on re-run and is unrelated. Screenshot of the composer with Send now reviewed by the vision model.

Closes #233. - **Send** replaces Queue. While the agent works it steers the message into the turn in flight (`delivery: steer`, read at the agent's next step); when the agent is idle or waiting on its own question it is the next turn (`queue`), and nothing is aborted. Ported from run #99's branch (its review found it correct; it was abandoned only because of the CI infra problems fixed in #236). - **The Redirect button is gone.** A sent message the agent has not read yet shows **Send now**, which posts the same message id with a new mode `now`. The engine checks the session's inbox and, only while the message is still waiting, calls opencode's `interrupt?resume=true`: the call in flight ends and the waiting steer is delivered at once, then the agent goes on. A message read in the meantime needs nothing, and the turn is not stopped for it. ⌘⏎/Ctrl+⏎ still stops the turn and sends what is typed. - Verified live against opencode 2.1.2 through Braid's own client: a steer waiting behind a 30 s `sleep` was delivered 0.2 s after Send now and answered. - A steered message's user turn is now attributed to the operator in the transcript (the port had missed `human.steer_prompt` there). Tests: unit 4747 passed; vitest 972 passed; browser lane 372/373, the one failure (`lapsed-question.spec.ts`, a gate card slow to close) passes on re-run and is unrelated. Screenshot of the composer with Send now reviewed by the vision model.
feat(composer): Send steers, Send now on a waiting message (#233)
All checks were successful
test / fast-lane (push) Successful in 25m41s
test / fast-lane (pull_request) Successful in 25m45s
2ad7e7b78a
Ported from run #99's branch (correct per its review; abandoned for CI
infra): Queue becomes Send, which steers into the turn in flight
(delivery: steer) while the agent works and queues when it is idle.

Then, per the issue's later word: the Redirect button goes; a steered
message the agent has not read offers Send now (mode now). The engine
checks the session's inbox and, only while the message waits, calls
interrupt?resume=true, which ends the call in flight and delivers the
waiting steer at once (measured on opencode 2.1.2: 0.2-2 s behind a
long sleep). Cmd/Ctrl+Enter still stops and sends what is typed.
cmoriarty deleted branch feat/233-steer-send 2026-10-22 04:02:13 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid!239
No description provided.