GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): align copied chat tables with supplementary CJK characters by StiensWout · Pull Request #44952 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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:

  1. Open the web app and start a new chat.
  2. 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.
  3. On that table, open the copy menu and choose Copy for chat apps.
  4. 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.

Before After
Commit d881b0bcd0 91d427a298
Result failed with "expected '𠮷 1' to be '𠮷 1'" passed

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.

All reactions
StiensWout and others added 5 commits November 28, 2026 13:46
@StiensWout @codex
test(web): reproduce misaligned supplementary CJK in copied tables
d881b0b
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(web): align copied chat tables with supplementary CJK characters
bfcac65
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(web): count supplementary kana and Tangut as wide in copied tables
ec94bfc
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(web): keep combining marks from widening copied table cells
0f6714b
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(web): distinguish spacing marks when aligning copied tables
91d427a
Co-authored-by: GPT 6.2 Sol <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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

Check name Status Explanation
Title check Passed 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 Passed 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 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 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 2bebf9e
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff6a7885-6b52-4722-923e-4a32d5577eb6
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 28, 2026
juliusmarminge and others added 2 commits November 28, 2026 13:01
@juliusmarminge
Merge remote-tracking branch 'origin/main' into wf/find-44787c98a410e…
d4a05a4
…d9a7e57f583
@juliusmarminge @claude
test(web): fold copied-table width cases into the existing width test
51142d6
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

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.

Before After
2bebf9ebe9 51142d6cc8
Before: incorrect clipboard padding After: corrected clipboard padding
Before recording After recording

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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 28, 2026
@juliusmarminge
juliusmarminge merged commit 342166c into pingdotgg:main Nov 28, 2026
60 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
@iamshadmantaqi iamshadmantaqi mentioned this pull request Nov 28, 2026
fix(web): Copy for chat apps keeps rows aligned when cells hold text symbols like ™ or ↔ #44992
Merged
imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
@imetn
chore(upstream): port 42 high-value post-v0.1.13 PRs (mobile, web, se…
6008d4d
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

Projects

None yet

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.

2 participants

@StiensWout @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.