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
{{ message }}
Repository navigation
fix(web): timeline minimap previews no longer cut an emoji in half - #42575
The timeline minimap hover preview—and each minimap button's aria-label ("Jump to message: …")—parses at most the first 1,500 UTF-16 code units of a message, so an emoji straddling that cut leaves a trailing broken character (�). It shows on screen when most of the first 1,500 characters are markdown the preview drops (such as a long link target); otherwise it sits past the visible one-line or three-line preview while screen readers still read it in the button's accessible name.
markdownMinimapPreview now backs the cut up by one code unit when index 1,500 would split a surrogate pair, using the existing shared splitsSurrogatePair helper the same way other call sites do. It also calls the file's existing markdownPlainText helper instead of repeating its body (no behavior change).
Setup
Web on Linux (headless Chromium, 2560x1600), isolated dev build with synthetic data only, server named "Test machine". In a Replay thread, the first message is [Build log](<long link>) 🎉 the release build passed with 🎉 at character 1,500, followed by a second message so the minimap renders.
Steps
Open the thread and hover the first minimap mark with the mouse.
5f3cdab9b77 (main)
a603aa88 (this PR)
Preview reads "Build log �"; button accessible name is "Jump to message: Build log �"
Preview reads "Build log"; button accessible name is "Jump to message: Build log"
Tests
timelineMinimapItems.test.ts adds one case for a surrogate pair at the 1,500-code-unit slice boundary; it fails on main (expected 'Build log �' to be 'Build log', 1 failed / 4 passed) and all 5 tests pass here in 3 of 3 runs.
vp run check:changed passes.
An AI agent ran each check.
Desktop renders the same web component. Mobile has no timeline minimap. No copy, contract, or provider change.
Reviewing files that changed from the base of the PR and between 9353552 and ecea4df.
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 minimap preview now avoids truncating between the two code units of a surrogate pair. A test covers a long link followed by an emoji and checks that the preview retains the label “Build log.”
markdownMinimapPreview shortens the cutoff to 1,499 code units when the 1,500-code-unit boundary splits a surrogate pair. The test checks that the preview retains the “Build log” label.
This change prevents a broken character in the timeline minimap preview and its aria-label when truncation splits an emoji. The change is small, localized and covered by a regression test, so merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(web): timeline minimap previews no longer cut an emoji in half" names the main change: the minimap preview no longer splits a surrogate pair at the 1,500-code-unit cut. It matches the r…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification content. The Problem section explains the broken emoji at the 1,500-code-unit cut and the screen reader impact. Th…
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 "fix(web): timeline minimap previews no longer cut an emoji in half" names the main change: the minimap preview no longer splits a surrogate pair at the 1,500-code-unit cut. It matches the raw summary and the objectives. It follows the conventional commit style the template asks for.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification content. The Problem section explains the broken emoji at the 1,500-code-unit cut and the screen reader impact. The Change section explains the backed-up cut via splitsSurrogatePair and the markdownPlainText reuse. Verification gives a focused test with a before-and-after failure count, a repo check, and before/after screenshots. The Scope section does not link an issue or explain why none is needed. The description also does not state that the change is a bug fix, though the title and Problem section make that clear. The author also gives the agent model in the closing line, as the template asks.
Resolution
Optional: add a Scope note that links an issue or explains why no issue is needed for this small obvious bug fix.
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; 7 remain after this review.
Real Chromium web client, 1280×800, dark theme, fresh synthetic data on both commits. Seeded the 1,499-unit markdown link prefix followed by 🎉 the release build passed, completed two Replay Multi turn messages, and hovered the first minimap strip.
Base visibly shows Build log �; head shows Build log. The accessible label changes from Jump to message: Build log � to Jump to message: Build log. The scenario fails on base and passes on head.
Resolves the 10 conflicted files of commit A (5422d07) and the merge
breaks:
- Identify.ts takes upstream's version (pingdotgg#42299 drops Codex and Claude
account ids from analytics). The Codex account-change restart (#29)
keeps its auth.json reader in the fork-only file fork/codexAccount.ts.
- AgentSessionScanner: the checkout cache check joins upstream's new
isT3OwnedPath (pingdotgg#42036).
- GitVcsDriver, storageCleanup, cli/thread: imports from both sides.
- OpenCode: upstream's skillsMentioned(location, text) gets the text
after the inline context (pingdotgg#42141).
- Sidebar: upstream's triage-aware operate check, then the fork's
display mode action.
- Minimap: upstream's markdownPlainText preview (pingdotgg#42575), which already
keeps single tildes.
- AcpAdapterV2.test: upstream's startup phase checks and the fork's
account checks.
- settleAfterRun's new steer check (pingdotgg#42092) ignores FYI items, which
are no user input; FyiSettle.test mocks turnItems and covers it.
- AntigravityAdapterV2.test: new upstream test passes profileDirectory.
- agentContextBudget.json: measured values.
- fork/previewChrome.ts: full Chrome pin follows upstream's
PreviewBrowser.VERSION 158.0.8127.88 (pingdotgg#42043), with the archive sizes
and sha256 of that build.
- fork/antigravityAccountEmail.ts: upstream's formatter output.
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.
The timeline minimap hover preview—and each minimap button's
aria-label("Jump to message: …")—parses at most the first 1,500 UTF-16 code units of a message, so an emoji straddling that cut leaves a trailing broken character (�). It shows on screen when most of the first 1,500 characters are markdown the preview drops (such as a long link target); otherwise it sits past the visible one-line or three-line preview while screen readers still read it in the button's accessible name.markdownMinimapPreviewnow backs the cut up by one code unit when index 1,500 would split a surrogate pair, using the existing sharedsplitsSurrogatePairhelper the same way other call sites do. It also calls the file's existingmarkdownPlainTexthelper instead of repeating its body (no behavior change).Setup
Web on Linux (headless Chromium, 2560x1600), isolated dev build with synthetic data only, server named "Test machine". In a Replay thread, the first message is
[Build log](<long link>) 🎉 the release build passedwith🎉at character 1,500, followed by a second message so the minimap renders.Steps
Open the thread and hover the first minimap mark with the mouse.
5f3cdab9b77(main)a603aa88(this PR)Preview reads "Build log �"; button accessible name is "Jump to message: Build log �"
Preview reads "Build log"; button accessible name is "Jump to message: Build log"
Tests
timelineMinimapItems.test.tsadds one case for a surrogate pair at the 1,500-code-unit slice boundary; it fails on main (expected 'Build log �' to be 'Build log', 1 failed / 4 passed) and all 5 tests pass here in 3 of 3 runs.vp run check:changedpasses.An AI agent ran each check.
Desktop renders the same web component. Mobile has no timeline minimap. No copy, contract, or provider change.
Generated with Gemini 4 Neon in T3 Code Nightly