Repository navigation
feat(chat): reply to something in a bot's chat - #153
Merged
Merged
Conversation
The owner can reply to one of the bot's replies, or to a message it got. messages.send takes replyTo; the daemon checks the item is the bot's and keeps its text on one line (migration 0018), and the bot reads it quoted above the owner's words. The app shows the quote over the composer and over the owner's bubble, which jumps to the quoted item.
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 5a of the ideas from 2026-10-04 (reactions come next, in 5b).
Daemon
messages.sendtakesreplyTo(a chat item id). The item must be in that bot's chat (not_foundotherwise) and be a reply or an inbound message with text (validation).replyTo { itemId, text }, the text on one line and cut at 300 characters (migration0018_message_reply.sql, no foreign key since chat items leave before messages on delete).Replying to: "<quote>"above the owner's words (spec 9.3).App
Spec 9.3, 11.2, 12 and 15.3 updated.
Test plan
cargo fmt,clippy -D warnings,cargo test --workspace(newtests/reply_to.rs, envelope and courier render tests)pnpm check(newreply.test.tsx)