You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long screen-reader activity announcements could cut a joined emoji in half and cause the screen reader to speak a different character. The formatter now stops at a whole character boundary before the ellipsis and keeps the existing length limits.
Open the web app in English, with a screen reader following the page.
In Settings, set Screen reader announcements to Everything.
Open a project whose folder on disk is named demo.
Put a file in that folder, not in a subfolder, named with the letter a written 105 times, then the woman-technologist emoji, then .ts.
Start a new thread in that project.
Ask the agent to edit that file.
Listen to the announcement that it is editing the file.
The announcement speaks the woman half of the joined emoji and then stops, so the technologist emoji is cut apart before the pause. Expected: The announcement stops on the last a and speaks no part of the emoji.
The cause is at apps/web/src/components/chat/turnDetailAnnouncement.ts:46. Ran cd apps/web && pnpm exec vp test run src/components/chat/turnDetailAnnouncement.test.ts with the repro test added: it failed in 2 of 2 runs on a clean checkout, with expected 'Editing aaaaaaaaaaaaaaaaaaaaaaaaaaaaa…' to be 'Editing aaaaaaaaaaaaaaaaaaaaaaaaaaaaa…' // Object.is equality in the output.
Evidence
Environment: Linux x64, the repository's own tests.
Macroscope's review found this PR approvable — Screen-reader announcements now preserve joined emoji when truncating text, keeping existing length limits and announcement settings. The change is confined to announcement presentation with no material operational or data impact.
You can add or adjust custom eligibility rules. Learn more.
cutText counts code points within graphemes and returns the prefix before a grapheme that exceeds the limit. The test checks that the truncated label excludes a trailing joined emoji.
This change keeps joined emoji intact when long activity labels are truncated for screen-reader announcements. No merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(web): keep joined emoji whole in screen-reader announcements" names the main change. The raw summary and objectives show that cutText now truncates at grapheme boundaries, so a joined e…
Description check
The description follows the template well. It gives the problem, the change, a reproduction on main, verification with before and after results, and a list of out-of-scope items. It links the bug evid…
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 "fix(web): keep joined emoji whole in screen-reader announcements" names the main change. The raw summary and objectives show that cutText now truncates at grapheme boundaries, so a joined emoji stays whole in the screen-reader announcement. The title is a conventional commit, short, and specific.
Full details: Description check
Explanation
The description follows the template well. It gives the problem, the change, a reproduction on main, verification with before and after results, and a list of out-of-scope items. It links the bug evidence through the reproduction and commit results. Gaps: the Scope section does not link an issue or say why the fix needs no issue, and the Verification section lists only a single focused test run plus a check:changed run. The author also names the models and harnesses used, as the template asks. These gaps are minor, so the description is mostly complete.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
On each commit, seed a fresh demo git project with one .ts file named 105 a characters followed by 👩💻.ts, containing export const value = 1;. Seed and open a thread, select real Codex GPT-6-Luna, set Settings → Chat → Screen reader announcements → Everything, and request: “Edit the only .ts file in this folder: change value = 1 to value = 2. Use your file editing tool (apply_patch). Do not run tests or other changes. After editing, explain in a few sentences what you changed.” Observe actual aria-live mutations, retain the editing announcement in a visible diagnostic overlay, and capture after the turn completes. Both edits show +1 -1.
Environment on both sides: Chromium, 1280×800, light theme, fresh isolated state; real Codex CLI 0.172.0 / GPT-6-Luna in API mode. The overlay displays the real aria-live payload and trailing Unicode code points. The browser lacks a complete emoji font, so the code-point line establishes the exact characters.
Scenario driver. The comparison runner exited 0: failed on base and passed on head.
Not shown:
Audible screen-reader speech was not recorded; this proves the exact aria-live payload. Long assistant-message truncation and other grapheme types were not exercised.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
2 participants
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.
Long screen-reader activity announcements could cut a joined emoji in half and cause the screen reader to speak a different character. The formatter now stops at a whole character boundary before the ellipsis and keeps the existing length limits.
Reproduction on main
Commit 772bc61c01 (main), in the running web app:
The announcement speaks the woman half of the joined emoji and then stops, so the technologist emoji is cut apart before the pause. Expected: The announcement stops on the last a and speaks no part of the emoji.
The cause is at
apps/web/src/components/chat/turnDetailAnnouncement.ts:46. Rancd apps/web && pnpm exec vp test run src/components/chat/turnDetailAnnouncement.test.tswith the repro test added: it failed in 2 of 2 runs on a clean checkout, withexpected 'Editing aaaaaaaaaaaaaaaaaaaaaaaaaaaaa…' to be 'Editing aaaaaaaaaaaaaaaaaaaaaaaaaaaaa…' // Object.is equalityin the output.Evidence
Environment: Linux x64, the repository's own tests.
Proven: the repro fails at the test commit 1f241f4232 and passes on the head f861b17865, both on main 87e2c1b38b.
Outside view: a person sees it in the running web app by following the steps under Reproduction on main.
Tests
pnpm exec vp run check:changed 87e2c1b38b0c3a22a268920cfc5f8a279578e0cbpassed on head.Not in this change
Who did the work
Made in T3 Code by GPT 6.2 Sol, Grok 4.7 and Claude Opus 5.5