- Correlate composer 'Sending' acknowledgment with the dispatched
messageId (timeline or queue projection) instead of queue-tail
heuristics that another client's queue activity could satisfy
(Bugbot + Macroscope). Dispatches without a known messageId keep the
legacy latest-user-message heuristic.
- Drain queued messages in rowid (insertion) order instead of
queued_at + message_id, which mis-ordered same-timestamp messages
after a restart (Macroscope). Requeue replaces the row so an edited
messageId moves to the tail, matching the in-memory projector.
- Clear queuedMessages in the in-memory projector on thread.deleted,
mirroring the SQL projection (Bugbot).
- Bootstrap the queuedMessages projector before threadMessages so
revert pruning sees queued attachments during replay (Macroscope).
- Allow steer while a session reports 'starting' with a live
activeTurnId (provider reconnect mid-turn); only the pending-start
shape (starting, no active turn) is rejected (Bugbot).
- Settle mock provider sessions in ProviderCommandReactor tests whose
follow-up sends now queue-by-default against a still-running session.
Co-Authored-By: Claude Fable 5 <[email protected]>
- Reject thread.queue.steer while the session is starting: there is no
provider turn to steer into yet, and dispatching would race the pending
turn/start with a second provider turn. The message stays queued and
the composer surfaces the invariant error.
- Include queued-message attachments in the retained set during
checkpoint-revert pruning so reverting a thread no longer deletes
image files still referenced by queued messages.
Co-Authored-By: Claude Fable 5 <[email protected]>
- Move the 50-message queue cap from the projector into the decider so
the event stream, in-memory read model, and SQL projection can never
diverge (Bugbot); overflow rejects with an invariant error surfaced to
the composer. Cap covered by a new decider test.
- Scope the Codex turn/steer fallback to CodexAppServerRequestError so
transport/protocol failures propagate instead of racing a duplicate
turn/start (CodeRabbit).
- Only hand off optimistic blob previews for messages entering the
timeline; queued-only acknowledgments revoke them, fixing an object-URL
leak (CodeRabbit).
- Advance getCommandReadModel updatedAt from queued-message timestamps
(CodeRabbit).
- Cover queued-message lifecycle in the threadReducer tests (CodeRabbit).
Co-Authored-By: Claude Fable 5 <[email protected]>
A mid-turn send now projects as a queued message rather than a steered
timeline message, so the composer's local-dispatch acknowledgment also
watches the queued-message tail. Remove the unused listAll repository
method.
Co-Authored-By: Claude Fable 5 <[email protected]>
Messages sent while a turn is running are now held server-side in a
per-thread queue and drained automatically on natural turn completion.
Queued messages render as chips above the composer with Steer (dispatch
now, steering the active turn) and Remove actions. Codex steers use the
protocol-native turn/steer with a turn/start fallback.
Co-Authored-By: Claude Fable 5 <[email protected]>