Skip to content

fix(web): PR links in expanded tables no longer split mid-number - #24584

Closed
juliusmarminge wants to merge 2 commits into
mainfrom
fix/issue-24147
Closed

juliusmarminge wants to merge 2 commits into
mainfrom
fix/issue-24147

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Problem

In an expanded Markdown table, explicit PR links such as [#363](https://github.com/example/repo/pull/363) could split the number into #36 and 3. Reproduced in the real web app with a wide chat lane and prose competing for table-column width.

Change

Only labels whose suffix contains a dot or slash receive per-character break opportunities. Short reference labels now use normal word boundaries, while URL-shaped labels retain their existing wrapping. This changes one shared web/desktop Markdown helper.

Scope and approval

Fixes #24146

GitCafe: https://git.cafe/pingdotgg/t3code/issues/24147

Triaged bug via the automated issue flow; GitCafe mirror #24147. No duplicate found among open issues through the 90-day cutoff. Existing contributor #24163 is untouched.

Verification

  • Targeted formatting and lint passed for MarkdownExternalLink.tsx; web typecheck and git diff --check passed on final head.
  • Purely visual fix: no implementation-mirroring tests added. Two isolated code reviewers returned MERGE.
  • Real web dev-server reproduction showed split digits before; both roles, header/data cells, themes and wide/narrow samples were captured. Long URL wrapping, long ordinary labels, Files and attachment previews, table toggles/panning and the plan preview were checked.
  • Captured candidate d4d5ad61 against eea98953. Main was merged into final head e8058c32; the renderer, table CSS and ChatMarkdown paths are identical to the captured candidate. The final-head integrated browser smoke again showed each reference on one line: Final-head smoke

Evidence: fixture matrix, 19-pair index, recordings and public seed/driver files, 10-pair supplement and eight recordings, independent core proof audit. The core audit verified all original images/diffs/recordings and independently rebuilt the candidate geometry. The supplemental audit verified all additional captures, recordings, 20 diff maps, 20 unchanged repeats and 68 public media hashes. It confirms the material S4/C10/P5 and cached C11/P6 gaps are resolved, with no confirmed regression. The original full matrix remains incomplete for compact reasoning C4/P7 and reasoning round-trip R3; other secondary limitations are listed below. Its attempted final-head HTTP check occurred after the lead stopped the runtime; the lead’s completed final-head smoke is shown above.

Environment: T3 collaborative browser, real isolated web dev server, CSS viewports 1440×1000 and 390×1000, DPR 2, system fonts at default scale, light/dark primary samples. Desktop snapshots are downscaled by the preview to 1280×889; narrow snapshots are 780×2000. Loaded-font endpoint captures have pixel-identical repeats 500 ms apart. Motion was suppressed with CSS; native reduced-motion emulation was unavailable. Diff0 is absolute RGB difference amplified ×8; DiffT highlights max-channel differences >16/255. Supplemental pointer highlights/scrollbar visibility are explicitly annotated and are not renderer evidence.

What else changed: ordinary labels without a suffix dot/slash regain natural wrapping throughout shared Markdown. Long labels can widen a column, narrow adjacent prose and change row height; narrow paragraph/list labels can move to a fresh line. The primary wide table becomes 19.5 CSS px shorter. These visible effects are included in the captures.

Unverified: live PR retrieval failed with “Could not reach GitCafe”; the production PR renderer was exercised with explicitly synthetic local cached data, including generated reference/mention/commit controls. Compact thoughtLine/reasoning, italic inspector, event detail, pending-question and review/context-comment callers, live PR comments/media splits, loaded favicon/rich-image controls and Unicode glyphs remain partial or unverified. No Electron-shell run was performed; desktop shares this helper. Native mobile uses a separate renderer and is unaffected.

Before/after tables below show captured base eea98953 and candidate d4d5ad61. Full fixture conditions, repeats, geometry and narration are in the linked indexes.

Fixture Before · eea9895 After · d4d5ad6 Diff0 ×8 DiffT >16/255
outside Before outside After outside Diff0 outside DiffT outside
plan-preview Before plan-preview After plan-preview Diff0 plan-preview DiffT plan-preview
primary-assistant-1440-dark Before primary-assistant-1440-dark After primary-assistant-1440-dark Diff0 primary-assistant-1440-dark DiffT primary-assistant-1440-dark
primary-assistant-1440-light Before primary-assistant-1440-light After primary-assistant-1440-light Diff0 primary-assistant-1440-light DiffT primary-assistant-1440-light
primary-assistant-390-dark Before primary-assistant-390-dark After primary-assistant-390-dark Diff0 primary-assistant-390-dark DiffT primary-assistant-390-dark
primary-assistant-390-light Before primary-assistant-390-light After primary-assistant-390-light Diff0 primary-assistant-390-light DiffT primary-assistant-390-light
primary-user-1440-dark Before primary-user-1440-dark After primary-user-1440-dark Diff0 primary-user-1440-dark DiffT primary-user-1440-dark
primary-user-1440-light Before primary-user-1440-light After primary-user-1440-light Diff0 primary-user-1440-light DiffT primary-user-1440-light
primary-user-390-dark Before primary-user-390-dark After primary-user-390-dark Diff0 primary-user-390-dark DiffT primary-user-390-dark
primary-user-390-light Before primary-user-390-light After primary-user-390-light Diff0 primary-user-390-light DiffT primary-user-390-light
reasoning-open Before reasoning-open After reasoning-open Diff0 reasoning-open DiffT reasoning-open
shapes-01-03 Before shapes-01-03 After shapes-01-03 Diff0 shapes-01-03 DiffT shapes-01-03
shapes-04-06 Before shapes-04-06 After shapes-04-06 Diff0 shapes-04-06 DiffT shapes-04-06
shapes-07-09 Before shapes-07-09 After shapes-07-09 Diff0 shapes-07-09 DiffT shapes-07-09
shapes-10-12 Before shapes-10-12 After shapes-10-12 Diff0 shapes-10-12 DiffT shapes-10-12
shapes-13-15 Before shapes-13-15 After shapes-13-15 Diff0 shapes-13-15 DiffT shapes-13-15
shapes-16-18 Before shapes-16-18 After shapes-16-18 Diff0 shapes-16-18 DiffT shapes-16-18
shapes-19-21 Before shapes-19-21 After shapes-19-21 Diff0 shapes-19-21 DiffT shapes-19-21
shapes-22 Before shapes-22 After shapes-22 Diff0 shapes-22 DiffT shapes-22
Fixture Before · eea9895 After · d4d5ad6 Diff0 ×8 DiffT >16/255
attachment-1440 Before attachment-1440 After attachment-1440 Diff0 attachment-1440 DiffT attachment-1440
attachment-390 Before attachment-390 After attachment-390 Diff0 attachment-390 DiffT attachment-390
chat-assistant-token-390 Before chat-assistant-token-390 After chat-assistant-token-390 Diff0 chat-assistant-token-390 DiffT chat-assistant-token-390
chat-user-leading-1440 Before chat-user-leading-1440 After chat-user-leading-1440 Diff0 chat-user-leading-1440 DiffT chat-user-leading-1440
chat-user-shapes-1440 Before chat-user-shapes-1440 After chat-user-shapes-1440 Diff0 chat-user-shapes-1440 DiffT chat-user-shapes-1440
chat-user-token-390 Before chat-user-token-390 After chat-user-token-390 Diff0 chat-user-token-390 DiffT chat-user-token-390
file-1440 Before file-1440 After file-1440 Diff0 file-1440 DiffT file-1440
file-390 Before file-390 After file-390 Diff0 file-390 DiffT file-390
pr-1440 Before pr-1440 After pr-1440 Diff0 pr-1440 DiffT pr-1440
pr-390 Before pr-390 After pr-390 Diff0 pr-390 DiffT pr-390

Recordings: before table toggle/pan, after table toggle/pan. Matching scripted steps and timestamps are in the indexes; supplemental clips cover Files/attachment source/rendered round trips and long-token panning.

Implemented with Claude Opus 5.5; reviewed and verified with GPT-6.1-Sol and Claude Opus 5.5 through T3 Code (Codex and Claude harnesses).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fix PR opened by an issue lead; enters the PR loop size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: PR link chips in an expanded Markdown table break mid-number (#36 / 3)

1 participant