Repository navigation
Conversation
Run message text through :libs:text-format with the detected links and mentions as protected ranges. The bubble styles bold, italic, strike, code, quotes and lists and shows a masked link as its label; reply quotes, chat list previews and push text show the display string with markers removed. Copy and edit keep the raw text. A masked link's URL no longer produces a link card or prefetch (spec decision 4). Mention detection accepts one underscore before the @ and gives the handle's closing underscore back (spec rule 6), so _@jeff_ is an italic mention. Previously it matched neither. ChatSummaryPreviewTest and MessagingPushDecryptionTest now run under Robolectric because previews call detectUrls.
This was referenced Oct 9, 2026
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.
Renders the chat text formatting from
docs/superpowers/specs/2026-10-07-chat-text-formatting-design.md(orchestrator repo) in the transcript, and shows the plain display text elsewhere.Link detection (the first PR in the brief) already landed in #1732, so this does not stack on anything.
parseChatText/formattedDisplayText/cardLinksin:apps:flipcash:shared:chatfeeddetectUrlsanddetectMentionsintoparseTextFormatas protected ranges, so every surface derives the same ranges.MessageLinkPrefetcher(spec decision 4)._may precede the@, and the handle's closing_is given back (spec rule 6). This was not in the brief's four PRs; it is needed for_@jeff_to render as an italic mention.ChatSummaryPreviewTestandMessagingPushDecryptionTestnow run under Robolectric because previews calldetectUrls.Tests:
FormattedBubbleTextTest(new),MentionDetectionTest.