Repository navigation
feat(bots): a bot on another computer can offer a message to your bots here - #2496
Merged
Merged
Conversation
… sends it to a bot here
…and documented; a bot's name for the recipient keeps its letters
…t from the Devices methods other devices call; tool tables list bot_offer
…its bot deleted, Make private closes offers first, and a moved bot's offers name no device
Collaborator
Author
7 tasks
This was referenced Nov 30, 2026
Merged
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.






Problem
When you use a bot on another computer one way (your PC uses the Mac, and the Mac has no access to the PC), that bot can't get a message to the PC's bots. "If the build breaks, tell Alpha" goes nowhere when Alpha lives on the PC you're writing from.
Change
A bot can now offer a message for a bot on the computer you're writing from. Nothing crosses from the Mac to the PC: the offer waits in the bot's chat, the PC reads it on the chat it already has open, and you send it from there, or not.
bot_offer({ message, to? })is only in the bot's chat, and only works in a chat turn you started from another computer that takes offers. That computer says so with your message: its router addsoffers: 1tobots.chat.send(row version 3), only when the bot's computer lists that version, and a window can't set it. Any other turn getsoffer_unsupportedand words telling the bot to tell you instead. These turns include a message written on the Mac, a phone, an older PC, work, a schedule, a wake, or another bot's message. There is no wider fallback. Limits: 3 offers per turn, 2,000 characters and 6 KiB each. A retried tool call is the same offer.offerCardFor: the device it is for sees it markedforYou, and every other device sees the words and where they wait, with no Send.bots.remote.offerSend) only takes a person at a Mousse window on the PC. The command line, agents, bots and other computers getforbidden.offer_busy.<profile>/bots/offers.json. A file that can't be read closes every bot.docs/bots.mdhas a new "Offered messages" part. The glossary has "Offered message"; the name "Inbox" is already taken by the Automations page.How to review
src/shared/bots/personal/offers.ts: the card, limits and refusal words.BotEngine.offerBotMessage,turnOwnerToSave, the tool inappTools/bots.ts, andofferCardForinRemoteBots.ts.BotRouter.offerSendandofferState,BotChatService.keepOffered, andBotOfferAccessStore. This is where the risk is: who may send, the checks before the commit, and the one-row dedupe.BotOfferCard.tsx, the switch inBotDevices.tsx, and Make private inbotsStore.ts.Verification
tests/netEngine/checks/offeredMessagesOneWay.test.ts: two real daemons paired one way through the engine. It shows:tests/bots/offeredMessages.test.tscovers:tests/bots/botOfferAccessStore.test.tscovers the switch file, including that an unreadable file closes every bot.tests/renderer/botOfferCard.test.tscovers:node scripts/verify.mjs <58 affected test files> --typecheck allran on 2e3b24f: 2,211 tests. Three failed, all tables missing the new entries:bot_offerin the bots tool family, the pinned tool table, and the new switch wrongly listed among the Devices methods other devices may call. All three are fixed in f545dcb.node scripts/verify.mjs tests/net/bridge/remote/botDeviceAccess.test.ts tests/bots/botMethodTable.test.ts tests/netEngine/allowlist.test.ts tests/bots/botsProtocolV2.test.ts tests/run/botAppTools.test.ts tests/run/toolAuthorityParity.test.ts tests/renderer/botOfferCard.test.ts tests/renderer/botDeviceControls.test.ts tests/renderer/botAboutPanel.test.ts tests/guiIpcThreadRouting.test.ts tests/bots/offeredMessages.test.ts tests/netEngine/checks/offeredMessagesOneWay.test.ts --typecheck allran on f545dcb: 12 files and 250 tests pass, and both typechecks pass.node scripts/verify.mjs tests/bots/offeredMessages.test.ts tests/renderer/botOfferCard.test.ts tests/netEngine/checks/offeredMessagesOneWay.test.ts tests/bots/botTransfer.test.ts tests/bots/botSystemInstructions.test.ts tests/renderer/botDeviceControls.test.ts tests/renderer/remoteBots.test.ts tests/renderer/composerWorkspaceToolbar.test.ts tests/renderer/botAboutPanel.test.ts tests/bots/botsProtocol.test.ts --typecheck allran on 2d7f0d2: 10 files and 180 tests pass, and both typechecks pass. New checks cover a cleared chat and a deleted recipient, Make private's order and its failure, and a moved bot's offers.bot_offer.Notes
The tool's description and the bots' guidance stay short and factual for now; wording that teaches bots when to offer goes through a design review in the next step. Still to come in that step: telling the Mac's chat whether the offer was sent, offers expiring, and Make private on another computer's bot closing offers there. #2489 touches many of the same files; whichever merges second resolves the overlap.
Review notes left for later:
bot_sendfrom another computer included. The owner sees the exact words before sending, and nothing leaves the PC.BotStreamSources.ts), but no test fails yet if it stops doing so.Refs #2490