Repository navigation
Conversation
The composer's agent pills get a +/✓ toggle that adds up to two extra recipients to a new thread (not in threads, replies, @mentions, routing or filing commands). The destination line, Send button and send sheets name every recipient. Each recipient goes through the existing durable single send, with its own receipt and idempotency key. Extras are sent first and the selected agent last. An accepted extra is removed from the composer before its receipt is settled, so a retry after a later failure sends only to the agents that have not accepted it, and an uncertain one is repeated with its original key. Scheduled batches report every recipient and Undo cancels them all. Replaces the earlier accepted-receipt design on this branch, whose batch bookkeeping in sendReceiptStore reused or skipped keys for later sends. Based on blackberry's UI and draft-state work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
j-asefa
force-pushed
the
loop/ux-3-multi-agent-prompt
branch
from
November 24, 2026 11:09
4805c9e to
fed176e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Point 3 of the 7 Feed/composer UX items: send one new-thread prompt to up to three agents.
+/✓toggle that adds up to two extra recipients (MAX_COMPOSER_RECIPIENTS = 3). The destination line readsSends to @a, @b, @c, the button readsSend (N), and the Send options / Send later sheets list every recipient. It is off inside a thread, when replying to a message or result, with a leading@agentmention, with Let Loop choose, and for filing commands. Extras are saved with the composer draft (WorkspaceComposerDraft.extraRecipients).prepareStoredSend→ submit/schedule →settleStoredSend), with its own receipt and idempotency key. Extras go first and the selected agent last.dropExtraRecipient, which writes the saved composer immediately) before its receipt is settled.Sent to @vera. Not sent to the others: ….Change from the earlier version of this PR
blackberry's version kept "accepted" receipts in
sendReceiptStoreto skip agents on retry. Review1085016cfound two P1s in that bookkeeping: a later single send reused an accepted key, and stale accepted receipts made a later identical batch skip an agent. There were also two Mediums: a retry with a different mode or time, and wrong toast wording. I replaced it with the design above.sendIntent.tsandsendReceiptStore.tsare now unchanged frommain, and the UI and draft-state work is kept.Known limitation
The recipient list is per tab (session storage), like the rest of the composer selection. If the tab is lost mid-batch and the user re-adds an agent that already accepted, that agent is sent the message again. That would be a new explicit send, not an automatic replay: uncertain sends keep their pending receipt and are always repeated with their original key.
Evidence (commit fed176e, on main e45900b…2ebe8291c)
npx vitest run test/composer-inline-handoff.test.tsx test/client-pending-identities.test.ts test/send-intent.test.ts test/drafts.test.ts test/workspace-drafts.test.ts test/composer-context.test.ts test/composer-launch.test.ts: 7 files, 46 tests passed. The new composer tests cover:1085016c)npm run typecheckandnpm run build: exit 0. Prettier check on changed files: clean.🤖 Generated with Claude Code