GeezerVison is showing github.com — fix(web): align copied chat tables with supplementary CJK characters by StiensWout · Pull Request #44952 · pingdotgg/t3code
Conversation
Copy for chat apps could shift later columns after supplementary East Asian characters such as 𠮷 or after a narrow letter with a nonspacing kana or ideographic mark. Both clipboard formats now count wide supplementary characters and wide spacing marks toward alignment while preserving the width of a narrow letter followed by a nonspacing mark.
Related: #22035
Reproduction on main
Commit 40b0a98a20 (main), in the running web app:
- Open the web app and start a new chat.
- Send a message that is a two-column markdown table with headers ID and Value and one data row: ₻7 under ID and 1 under Value.
- On that table, open the copy menu and choose Copy for chat apps.
- Paste into a chat code block that shows ₻7 as two columns wide.
The 1 sits one column to the right of the Value header. Expected: The 1 lines up under the Value header.
The cause is at apps/web/src/markdown-clipboard.ts:563. Ran cd apps/web && pnpm exec vp test run src/markdown-clipboard.test.ts with the repro test added: it failed in 2 of 2 runs on a clean checkout, with expected '𠮷 1' to be '𠮷 1' in the output.
Evidence
Environment: Linux x64, the repository's own tests.
Proven: the repro fails at the test commit d881b0bcd0 and passes on the head 91d427a298, both on main cc009e63dd.
Outside view: a person sees it in the running web app by following the steps under Reproduction on main.
Tests
- d881b0bcd0 adds the failing test, alone, before the fix.
pnpm exec vp run check:changed cc009e63dd60305022c081f011a5813b10c1992a passed on head.
Not in this change
- Hangul tone marks U+302E and U+302F retain their existing width because they are spacing marks with positive advance.
- Native mobile copy and the Markdown, CSV, and HTML table export commands use separate paths.
- Alignment depends on the destination’s monospace font.
Who did the work
- Repro written by GPT 6.2 Sol, in Codex
- Outside view by Grok 4.7, in Grok
- Duplicate check judged by Claude Opus 5.5, in Claude Code
- Written by GPT 6.2 Sol, in Codex
- Trimmed by Claude Opus 5.5, in Claude Code
- Reviewed by Claude Opus 5.5, in Claude Code, and by GPT 6.2 Sol, in Codex, and by Grok 4.7, in Grok
- Reproduction, checks and proof run by a program on base and head, not by an agent
Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5 and Grok 4.7
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The grapheme-width matcher now covers additional East Asian ranges and skips nonspacing marks when determining width. Table-alignment tests now include CJK characters and a base character with a combining mark.
Changes: Unicode table alignment
| Layer / File(s) |
Summary |
Grapheme width and alignment tests apps/web/src/markdown-clipboard.ts, apps/web/src/markdown-clipboard.test.ts |
WIDE_GRAPHEME now covers additional Unicode ranges and skips nonspacing marks when determining width. Tests check table spacing with CJK characters and a base character with a combining mark. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: flaviobarci, only21mil
Merge Risk: Minimal · up to 51142
-
This change fixes copied chat-table alignment for supplementary East Asian characters and combining marks. The change is small and covered by an updated test, and no merge-blocking risk was identified.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: copied chat tables are aligned after supplementary CJK characters. It follows the conventional commit form. It matches the raw summary, which covers wide supplementary… |
| Description check |
 |
The description follows the template in substance. It gives the problem, a reproduction, the cause location, test evidence, and a verification record. The Change section is brief. It explains that bot… |
| 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: copied chat tables are aligned after supplementary CJK characters. It follows the conventional commit form. It matches the raw summary, which covers wide supplementary ideographs and wide spacing marks in the clipboard width logic.
Full details: Description check
-
Explanation
The description follows the template in substance. It gives the problem, a reproduction, the cause location, test evidence, and a verification record. The Change section is brief. It explains that both clipboard formats now count wide supplementary characters and wide spacing marks, but it does not say how the code change does this. The Scope section does not link a bug issue. It cites #22035 only as related and gives no reason for the absence of a direct issue link. It also omits the explicit before/after statement required for UI changes, though this fix is in clipboard output rather than UI rendering. The Verification section is specific: it names the failing test, the observed output, and the passing check. The author list at the end is extra but does not conflict with the template.
Resolution
Consider adding a short Change paragraph that names the code change in WIDE_GRAPHEME. Also state whether #22035 is the bug issue that this PR fixes, or explain why no issue applies. The template asks for a link to the issue that shows the bug.
Finishing Touches
-
Generate unit tests (beta)
-
- 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 91d427a and 51142d6.
Files selected for processing: 1
-
apps/web/src/markdown-clipboard.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Evidence
Seed the same Unicode table, open its rendered message, then click Copy table → Copy for chat apps. Screenshots inspect the actual clipboard payloads; dots represent spaces. Base reproduces the reported padding in both formats; head corrects it. Intended-width Value offsets change from 5, 3, 4 to 4, 4, 4.
Scenario driver. Real-app comparison exited 0: fails on base, passes on head.
Not shown:
- GNOME Terminal and external rich-text destination rendering were not exercised; evidence shows the actual clipboard payloads with visible spaces and calculated intended-width offsets. Browser fonts display missing-glyph placeholders.
- The table was seeded as a rendered user message alongside a Replay turn, rather than generated by Codex; it exercised the real table copy controls.
- A+U+302A was not run separately.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
imetn
added a commit
to imetn/t4code
that referenced
this pull request
Nov 28, 2026
…rver)
Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix ([email protected] patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)
Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes
Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes
Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|