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): Copy for chat apps keeps rows aligned when cells hold text symbols like ™ or ↔ by iamshadmantaqi · Pull Request #44992 · pingdotgg/t3code

Conversation

@iamshadmantaqi

@iamshadmantaqi iamshadmantaqi commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Problem

"Copy for chat apps" on a chat table pads rows that hold a text symbol such as ™, © or ↔ one space short, so the next column sits one place left of its header and of the other rows.

Steps (no provider sign-in needed):

  1. Start a chat and send this user message:
    | Name | Note |
    | --- | --- |
    | Acme™ | a |
    | ©2026 | b |
    | A↔B | c |
    | Plain | d |
    
  2. On the table in the message, open Copy table, then Copy for chat apps.
  3. Paste into a monospace view (a code block in Slack, a terminal, a <pre>).

Seen: a, b and c sit one column left of Note and of d. Expected: all four line up under Note.

Cause

WIDE_GRAPHEME in markdown-clipboard.ts starts with \p{Extended_Pictographic}, which also matches symbols that only have an emoji form, such as ™, ©, ↔, ♥, ⚠ and ✔. Monospace fonts draw these one column wide; only their emoji forms (with U+FE0F) and the default-emoji characters are wide. So monospaceWidth counts them as two.

Change

Replace \p{Extended_Pictographic} with \p{Emoji_Presentation}|️. Emoji that show as emoji by default stay two columns, and a text symbol is two columns only when an emoji variation selector follows it (❤️, keycaps). Flags, keycaps and the CJK ranges are untouched, so it sits cleanly on top of #44952. Two lines in markdown-clipboard.ts (the regex and a comment).

Scope

Small fix of an obvious bug, steps reproduce it, so it needs no issue.

Verification

New case in markdown-clipboard.test.ts, "counts text-style symbols such as ™, © and ↔ as one column unless shown as emoji", with ❤️ as the emoji-form control.

Test commit alone, on main a212307:

- Name   Note
+ Name    Note
- -----  ----
+ ------  ----
  Acme™  a
  ©2026  b
  A↔B    c
Tests  1 failed | 58 passed (59)

With the fix: markdown-clipboard.test.ts 59 passed (59), MarkdownCopy.browser.test.tsx 5 passed, and the copy tests in ChatMarkdown.browser.test.tsx 28 passed.

vp run check:changed: format, lint, knip, typecheck (2 packages), test (2 files) and React Compiler (1 file) all pass.

Not verified: I did not click through the rendered table in the running app for this branch; the unit test covers the serializer, and an earlier real-Chromium probe on the previous base measured the second column one character left on the ™, © and ↔ rows without the fix and level with it.

Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.

Sorry, something went wrong.

Uh oh!

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

All reactions
iamshadmantaqi added 2 commits November 28, 2026 20:02
@iamshadmantaqi
test(web): Copy for chat apps counts text symbols like ™ and ↔ as one…
7fb7876
… column
@iamshadmantaqi
fix(web): Copy for chat apps keeps rows aligned when cells hold text …
397a83c
…symbols like ™ or ↔
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The grapheme-width matcher now identifies emoji-presentation characters and variation-selector sequences as wide. A test checks aligned output for text-style symbols and a heart emoji.

Changes: Clipboard table alignment

Layer / File(s) Summary
Grapheme width matching and alignment test
apps/web/src/markdown-clipboard.ts, apps/web/src/markdown-clipboard.test.ts
The width matcher uses Emoji_Presentation and U+FE0F instead of Extended_Pictographic. The test checks that ™, ©, and ↔ occupy one column each, while ❤️ occupies two.

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

Change: Bug fix

Suggested reviewers: stienswout, only21mil

Merge Risk: Minimal · up to 397a8

This change fixes table column alignment in "Copy for chat apps" for symbols like ™ and ↔. The change is small and reversible, and the author reports that the related tests pass. No merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Copy for chat apps keeps rows aligned when cells hold text symbols such as ™ or ↔. The changeset replaces the Extended_Pictographic width rule in WIDE_GRAPHEME so text…
Description check Passed The description follows the template. It gives a Problem section with reproduction steps and expected behavior. It explains the Cause and the Change, and it links no issue but justifies that choice fo…
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: Copy for chat apps keeps rows aligned when cells hold text symbols such as ™ or ↔. The changeset replaces the Extended_Pictographic width rule in WIDE_GRAPHEME so text-style symbols count as one column, and it adds a matching test. The title follows the conventional commit form and is specific.

Full details: Description check

Explanation

The description follows the template. It gives a Problem section with reproduction steps and expected behavior. It explains the Cause and the Change, and it links no issue but justifies that choice for a small obvious bug. The Verification section lists focused test results, a before-and-after test failure, and states what was not verified. It names the model and harness as the template asks. The Change section also describes the scope of the fix. No UI screenshots are attached, but the author states the app was not checked in the running UI, and the fix is a serializer change, so that gap is minor.

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: a212307
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 57b99b55-bdd1-4849-9002-fc1080ad115b
Commits

Reviewing files that changed from the base of the PR and between a212307 and 397a83c.

Files selected for processing: 2

  • apps/web/src/markdown-clipboard.test.ts
  • apps/web/src/markdown-clipboard.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

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Create a fresh scratch project, enable OpenCode, request the reported table, then choose Copy table → Copy for chat apps. The unchanged text/plain clipboard payload is shown in DejaVu Sans Mono. Chromium, 1280×800, light theme, fresh database on each side.

Before After
Before: symbol rows shifted left After: all rows aligned
a212307c92 397a83c9c2
a/b/c start one column left Every second-column value aligns
Before recording After recording

Scenario source. scenarios:prove exited 0.

Not shown:

  • External chat application paste and the text/html clipboard representation were not exercised; this proof captures the application's text/plain clipboard write and renders it unchanged in monospace.
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 01978dc into pingdotgg:main Nov 28, 2026
74 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
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:unvouched Author is not yet trusted in 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

@iamshadmantaqi @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.