Repository navigation
feat(chat): react to a bot's reply without waking it - #154
Merged
Merged
Conversation
The owner puts one emoji on a reply (reactions.set, migration 0019). Nothing goes to the bot then: every owner message takes the reactions waiting for one, in the same transaction, and the bot reads a line per reaction above the owner's words. The app shows the emoji under the reply, saying whether the bot will see it or already did.
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.
Part 5b of the ideas from 2026-10-04. As the owner chose: a reaction never wakes the bot; it goes with the owner's next message.
Daemon
reactions.set {botId, itemId, emoji}puts, changes or (withnull) takes off the owner's reaction on one of the bot's replies. The emoji come from a fixed list (REACTIONS: 👍 ❤️ 😂 🎉 🙏 👀, exported to TS).not_foundwhen the item is not in that bot's chat,validationwhen it is not a reply or the emoji is not in the list.reactions.list {botId}andreaction.changed.reactions(migration0019), one per reply, with the reply quoted on one line (120 chars) andsent_in.messages.send, and the answer to a question) takes the waiting reactions in the same transaction. The bot readsReacted 👍 to: "…", one line each, above the rest. A changed reaction waits again; taking one off that already went tells nobody.App
Spec 8.9 (new), 9.3, 11.2, 11.3 and 12 updated.
Test plan
cargo fmt,clippy -D warnings,cargo test --workspace(newtests/reactions.rs, envelope test)pnpm check(newreactions.test.tsx)