You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user message contains angle-bracket text such as <Button> or Promise<string>, the timeline minimap tooltip and jump button aria-label strip those tags instead of matching the literal text rendered in the message bubble.
Change
UserMessageBody renders user messages with parseRawHtml={false} (escapeHtml: true), whereas markdownTree in apps/web/src/markdown/wordsHast.ts had no escapeHtml option, so markdownPlainText called it with raw-HTML parsing enabled. This adds optional escapeHtml?: boolean to markdownTree, threads it through markdownPlainText and markdownMinimapPreview, and passes { escapeHtml: true } for userText in resolveTimelineMinimapPreview. Autolinks like <t3-thread://...> still parse as links, and assistant previews and turnDetailAnnouncement.ts stay unchanged.
Scope
Small bug fix for dropped angle-bracket text in timeline minimap previews of user messages; no issue needed.
Verification
Setup: Ubuntu 26.04.1 LTS (Linux x86_64), dark theme, 1280x800 viewport, fresh isolated dev state on each commit.
Steps: Open pairing URL → window.t3dev.replay("multi-turn") → send Fix <Button> focus and Promise<string> handling → focus minimap jump button and press End.
Minimap tooltip strips <Button> and <string>, showing "Fix focus and Promise handling".
Minimap tooltip keeps <Button> and Promise<string> literal, matching the user message bubble.
Jump button aria-label: Jump to message: Fix focus and Promise handling on 7b7ca65f9a02 → Jump to message: Fix <Button> focus and Promise<string> handling on 7e3dfdab30ad.
Desktop Electron wrapper (renders the same apps/web bundle)
Mobile (no timeline minimap on main)
Automated checks
Fail-first (7b7ca65f9a02): vp test run apps/web/src/components/chat/timelineMinimapItems.test.ts failed with "Fix focus and Promise handling in a thread".
User messages render with parseRawHtml={false}, so angle-bracket text like <Button> and Promise<string> appears literally in the message bubble, but the timeline minimap parsed user text with raw HTML enabled and stripped those tags. Forward optional escapeHtml through markdownTree and pass { escapeHtml: true } when building user-message minimap previews while keeping autolinks intact and leaving assistant previews unchanged.
Macroscope's review found this PR approvable — Preserves angle-bracket text in user-message minimap previews while leaving assistant previews and existing parser defaults unchanged. The change is limited to display text and carries no obvious material risk.
You can add or adjust custom eligibility rules. Learn more.
Reviewing files that changed from the base of the PR and between 7e3dfda and 1b2b682.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The Markdown preview helpers now accept and forward an HTML-escaping option. User-text minimap previews enable it. A test covers ordinary angle-bracket text and thread autolink rendering.
User-message minimap previews and their accessibility labels now keep literal angle-bracket text, matching the message bubble. Assistant previews are unchanged. No merge-blocking risk is apparent.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the timeline minimap now keeps angle-bracket text in user messages. It follows the conventional commit form with a fix(web) scope. The changeset adds an escapeHtml opt…
Description check
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the dropped angle-bracket text and expected behavior. The Change…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the timeline minimap now keeps angle-bracket text in user messages. It follows the conventional commit form with a fix(web) scope. The changeset adds an escapeHtml option to markdownTree, markdownPlainText, and markdownMinimapPreview, and enables it for user text previews, which matches the title.
Full details: Description check
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the dropped angle-bracket text and expected behavior. The Change section explains the escapeHtml threading and why it is needed. The Scope section says it is a small bug fix and that no issue is needed. The Verification section gives focused test results, before and after screenshots, and the commit links. It also states what was not shown (Desktop wrapper and mobile). The template asks for a model and harness line at the end, and the description includes a Generated with line, so the required information is present. The description includes a Linux-specific environment and a fork commit link (only21mil), which do not affect the check outcome.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Scenario: Timeline minimap preserves angle brackets in user messages
The same scenario ran against both commits with a fresh seeded database and the Replay (dev) provider.
Before bf0694e4c4
After 1b2b682dbe
Result
❌ The Jump to message aria-label is Jump to message: Fix focus and Promise handling in a thread; <Button> and <string> are missing. The tooltip also omits them.
✅ The Jump to message aria-label retains <Button> and Promise<string> and summarizes the thread link as a thread; the tooltip shows the same literal angle-bracket text.
…en, not as a tag
A question asked through t3_question read "feature/-web-quotes-only-batches" on the card: the
stored `feature/<key>-web-quotes-only-batches` went through ChatMarkdown with raw HTML parsed, and
`<key>` was taken for a tag and dropped.
- The card's and the Tracker's question, context, option details and reason, a reply's question
and Pick reason, an answered row, Decided without asking and Parked rows render with
parseRawHtml={false} (upstream's own switch, as user messages use): markdown stays, raw HTML
shows as written.
- Every pin's line escapes raw HTML (markdownPlainText with escapeHtml, upstream's option since pingdotgg#48246).
- Show in the chat quotes the text as the chat renders it (replyQuote, markdownPlainText without
escapeHtml) for reply questions, Decided rows, agent pins and unread label lines, so a quote
with `<key>` still finds its line in the rendered reply.
- Key words, option labels, pick, Blocks and an answer were already plain text.
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
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
When a user message contains angle-bracket text such as
<Button>orPromise<string>, the timeline minimap tooltip and jump buttonaria-labelstrip those tags instead of matching the literal text rendered in the message bubble.Change
UserMessageBodyrenders user messages withparseRawHtml={false}(escapeHtml: true), whereasmarkdownTreeinapps/web/src/markdown/wordsHast.tshad noescapeHtmloption, somarkdownPlainTextcalled it with raw-HTML parsing enabled. This adds optionalescapeHtml?: booleantomarkdownTree, threads it throughmarkdownPlainTextandmarkdownMinimapPreview, and passes{ escapeHtml: true }foruserTextinresolveTimelineMinimapPreview. Autolinks like<t3-thread://...>still parse as links, and assistant previews andturnDetailAnnouncement.tsstay unchanged.Scope
Small bug fix for dropped angle-bracket text in timeline minimap previews of user messages; no issue needed.
Verification
Setup: Ubuntu 26.04.1 LTS (Linux x86_64), dark theme, 1280x800 viewport, fresh isolated dev state on each commit.
Steps: Open pairing URL →
window.t3dev.replay("multi-turn")→ sendFix <Button> focus and Promise<string> handling→ focus minimap jump button and pressEnd.7b7ca65f9a02)7e3dfdab30ad)Minimap tooltip strips
<Button>and<string>, showing "Fix focus and Promise handling".Minimap tooltip keeps
<Button>andPromise<string>literal, matching the user message bubble.Jump button
aria-label:Jump to message: Fix focus and Promise handlingon7b7ca65f9a02→Jump to message: Fix <Button> focus and Promise<string> handlingon7e3dfdab30ad.Links:
7b7ca65f9a02,7e3dfdab30ad,apps/web/src/components/chat/timelineMinimapItems.test.tsNot shown:
apps/webbundle)main)Automated checks
7b7ca65f9a02):vp test run apps/web/src/components/chat/timelineMinimapItems.test.tsfailed with"Fix focus and Promise handling in a thread".7e3dfdab30ad):timelineMinimapItems.test.ts+wordsHast.test.tspassed (2 files, 113 tests).vp run check:changed 7b7ca65f9a02b63df912168cea04c5a5f4d055c1(7e3dfdab30ad): passed (format,lint,knip,typecheck,test,react compiler).Generated with Gemini 4 Neon in T3 Code Nightly