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(server): keep emoji intact in review guide comment summaries by jadelike-wine · Pull Request #42549 · pingdotgg/t3code

Conversation

@jadelike-wine

@jadelike-wine jadelike-wine commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Problem

When Write guide summarizes a resolved or outdated review thread, it can cut an emoji in half in the opening comment. For example, with 199 a characters followed by 🚀 more, the server keeps the first half of 🚀. The UTF-8 prompt sent to the Claude CLI then contains �….

Change

Back up one UTF-16 code unit when the 200-unit cutoff falls between the two halves of a surrogate pair. An emoji that fits at the end of the excerpt stays intact.

Scope

This fixes the server-side comment excerpt used by Write guide. The same line was noted in #35082. Its linked fix, #35111, covered Web hover previews.

Verification

I passed GitHub review-thread fixtures through the review guide input builder and the Claude text-generation adapter. A local stand-in for the Claude CLI recorded its UTF-8 stdin. These are the characters after the ASCII prefix in the captured prompt:

Opening comment Before After
199 × a + 🚀 done (resolved) �… (U+FFFD U+2026) … (U+2026)
198 × a + 🚀 done (outdated) 🚀… 🚀…

The 199-character regression case failed on the upstream implementation. Both boundary cases passed with the fix. vp run check:changed upstream/main passed, including the typecheck and all 14 selected tests. The runtime check captured the model input without calling a live model.

Model: GPT-6. Harness: Codex Desktop.

Sorry, something went wrong.

Uh oh!

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

All reactions
@jadelike-wine
fix(server): keep emoji intact in review guide comment summaries
7593596
@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 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 31d95f8
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d4a0286f-0ec3-4f09-b8e2-6f9bd803fa51
Commits

Reviewing files that changed from the base of the PR and between 7593596 and 0adb291.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The review guide input conversion now avoids splitting a surrogate pair when it truncates text longer than 200 characters. Parameterized tests cover resolved review remarks with an emoji near the truncation boundary.

Changes: Review remark truncation

Layer / File(s) Summary
Surrogate-safe truncation and tests
apps/server/src/pullRequest/pullRequestReviewGuideInput.ts, apps/server/src/pullRequest/PullRequestReviewGuideService.test.ts
oneLine keeps 199 code units when the 200-character boundary splits a surrogate pair, then appends an ellipsis. Tests cover emoji after 198- and 199-character prefixes.

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

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review 75935

This change stops review-thread excerpts from being cut in the middle of an emoji. It is narrowly scoped and has regression tests, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: review guide comment summaries no longer split emoji at the truncation boundary. It follows the conventional commit format and matches the server-side fix in the chang…
Description check Passed The description follows the template. It has Problem, Change, Scope, and Verification sections. The problem, the surrogate-pair fix, the linked issue and PR, and the before/after verification table ar…
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: review guide comment summaries no longer split emoji at the truncation boundary. It follows the conventional commit format and matches the server-side fix in the changed truncation logic.

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope, and Verification sections. The problem, the surrogate-pair fix, the linked issue and PR, and the before/after verification table are all provided. The model and harness are named at the end, as the template asks. The description does not use the template's HTML comment prompts, and it has no screenshots. The UI-screenshot rule does not apply because the change is server-side.

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: 2aec607
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 27774d3e-7619-4dd4-ad2c-9fc697f185f5
Commits

Reviewing files that changed from the base of the PR and between 2aec607 and 7593596.

Files selected for processing: 2

  • apps/server/src/pullRequest/PullRequestReviewGuideService.test.ts
  • apps/server/src/pullRequest/pullRequestReviewGuideInput.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 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 25, 2026
@juliusmarminge
Merge remote-tracking branch 'origin/main' into codex/fix-write-guide…
0adb291
…-comment-emoji
@juliusmarminge

juliusmarminge commented Nov 25, 2026

Copy link
Copy Markdown
Member

Evidence

Generated review guides through each commit’s real server using the same resolved GitLab diff comment and real Claude Haiku 5.5. Captured stdin forwarded unchanged to claude -p, first with 199 ASCII characters plus 🚀 more, then with 198 as the fitting control. All four generations completed successfully.

Before After
31d95f850b 0adb291b60
Crossing cutoff ends in �…: EF BF BD E2 80 A6. Crossing cutoff ends cleanly in …: E2 80 A6.
Fitting control retains 🚀…. Fitting control retains 🚀…; captured text is identical to base.
Captured stdin and byte tails Captured stdin and byte tails

Seed and driver scripts with reproduction instructions.

Not shown:

  • Browser pairing, Settings controls, and Guide-tab navigation were not exercised; authenticated RPC invoked the real server operations. Evidence captures the affected Claude stdin boundary rather than the rendered guide.
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 25, 2026
@juliusmarminge
juliusmarminge merged commit e7a2d9f into pingdotgg:main Nov 25, 2026
56 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 25, 2026
@patroza patroza mentioned this pull request Nov 25, 2026
Merge upstream main through feecca53e4dc patroza/t3code#675
Merged
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

@jadelike-wine @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.