Repository navigation
Act on messages on the phone: select, reply, copy, share, read aloud, select text - #55
Merged
Merged
Conversation
…; fail Read aloud at once without a voice
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.
Long-press a message in a thread or a bot chat to act on it, like a chat app: the top bar turns into a selection bar, and you can reply, copy, read aloud, share or select text. Reactions come in the next PR.
What changes
SelectionBar(UI library, on Android and iOS): close and "N selected" on the left, then Reply, Copy, Read aloud and Share, with Select text under ⋯. Tap other messages to add or remove them. Close or Back ends it. Home's long-press selection uses the same bar. There are no icons on every bubble.ReplyPreviewBarwith a close button shows in the composer'stopslot. The reply goes out the way desktop sends it:bots.chat.sendwithreplyTo: <message id>. It is kept with the queued message, so a retry after a restart answers the same message. The chat shows desktop'sreplyToquote above the message; tap it to jump to the original.expandQuoteTokenswrites it. The transcript turns those paragraphs back into quote rows, as desktop'ssplitSentQuotesdoes; tap one to jump to the message it came from.TextToSpeech, iOSAVSpeechSynthesizer), not Mousse's. It reads the message as desktop'smarkdownToSpeechTextprepares it: no Markdown, links read by their label, addresses read as "link", and code read as "Code block omitted." ASpeechBarabove the composer shows which message is playing, with pause/resume and stop. Starting another message stops the first. It keeps going about 30 s in the background.core/src/message_text.rs). Speech text, reply quote text, quote lines, sent-quote splitting, finding the quoted message, and copy joining. Both apps use the same code. Each test has a must-fail control.MobileBotMessage.reply_toandsend_message(reply_to:)were added.<computer>/thread|bot/<id>/actions/<select|select2|reply|quote|text|speak>, thecomponents/messagesgallery section, and the plan.mjs entries, including a swipe recording.Desktop actions a phone could add next (no desktop change needed)
Thread: Undo/Redo (
routed.actions.undoLatest/redo), Edit and resend (routed.actions.list→actions.fork→orchestrator.sendwithconversationBranchId), Fork from here (routed.runs.get→routed.thread.fork), Retry/Continue (orchestrator.sendagain). Bot: Retry (bots.chat.sendagain with the samereplyTo). These are left for a later PR. Desktop has no pin, star or delete on single messages.Checks
message_texttests and the new send test. On Linux CI; locally, the send tests that save a queued message fail on Windows only, as before.