Repository navigation
refactor: one place that says how a message reads - #8
Merged
Merged
Conversation
Commands take a message's author and sequence number alone. refOf builds that
in one place, instead of five { author, seq } literals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ui/src/reading.ts turns a message, or a reply's quote of one, into what it reads as: a placeholder (deleted, vanished, not on this computer), an action, or what was said with its file. The transcript lays that out; a quote shows its summary. The wording stays as it was, with one edge brought in line with the bubble: a quoted file whose caption starts with /me reads as its caption, not as an action. Adds Action and Summary to the glossary. Notifications stay worded in Rust, with a pointer to the UI's rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An action's summary is now "Alex waves", as the transcript shows it, instead of "* waves" in a quote and the raw "/me waves" in the reply bar. A search match on an action reads the same way. A quote of a deleted message says "Message deleted", as the message itself does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
How a message reads is decided in one place,
ui/src/reading.ts. Before, the transcript, quotes, the reply bar and search each worked it out on their own, and they disagreed./me waves* wavesAlex waves/me waves/me wavesAlex waves/me waves/me wavesDeleted messageMessage deleted/me waves* waves/me waves(as its bubble shows it)Notifications stay worded in Rust (
desktop::on_message), with a comment pointing toreading.ts. GLOSSARY.md gains Action and Summary.Evidence
ui/src/reading.test.tsholds table-driven tests:/mealone, a caption starting with/me, a file alone, deleted, vanished, and the three kinds of gone quotebun run check,bun run testandbun run build.cargo fmt --checkand clippy pass; the Rust side only gained a comment.Merge Danger
Door: two-way
There's no wire, schema or Rust behaviour change.
Blast Radius: wording
Only how messages read in the transcript, quotes, the reply bar and search.
🤖 Generated with Claude Code