Repository navigation
fix(web): PR links in expanded tables no longer split mid-number - #24584
Closed
juliusmarminge wants to merge 2 commits into
Closed
juliusmarminge wants to merge 2 commits into
juliusmarminge wants to merge 2 commits into
Conversation
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.
Problem
In an expanded Markdown table, explicit PR links such as
[#363](https://github.com/example/repo/pull/363)could split the number into#36and3. 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
MarkdownExternalLink.tsx; web typecheck andgit diff --checkpassed on final head.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.
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).