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
Saved notebook previews dropped a combining mark that a stream wrote at the start of an earlier carriage-return frame, so a\r\u0301\ra done showed a done while the live terminal shows \u0301a done. Collapsing saved redraws now keeps each earlier frame's leading zero-width marks exactly once, including when the final frame is empty or mark-only. The redraw tests now check that the saved and live results match.
Commit f12f153155 (main). The preview displays a done with the accent missing. Expected: The final output starts with the combining acute accent, matching the same output in a live redraw.
Save a notebook whose stdout contains a\r\u0301\ra done using actual carriage returns and a combining acute accent.
Open the saved notebook in the T3 Code file preview.
The cause is at packages/shared/src/terminalOutput.ts:1126. Ran pnpm scenarios:prove scripts/scenarios/notebook-redraw-keeps-leading-combining-mark.e2e.ts --target web with the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, with expected "a done" to be "́a done" in the output.
Evidence
Environment: The web app in Chromium on Linux x64, a fresh checkout on a boat.dev VM reset before each run.
47a0845d4a adds the failing test, alone, before the fix.
pnpm exec vp run check:changed 975b7aa8927cba98daa84e393e2640b4973c963c passed on head.
Not in this change
Lines with a tab or an erase-in-line go through the saved-line replay (replaySavedLine), which also drops a leading mark when column 0 is repainted (e.g. a\r\u0301\ra\tb); that is a separate code path.
Earlier frames' marks that come after a glyph are still dropped when a later frame repaints that glyph, which matches the live terminal.
Who did the work
Repro written by GPT 6.2 Sol, in Codex
Duplicate check judged by Claude Opus 5.5, in Claude Code
Written 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
Reproduction, checks and proof run by a program on base and head, not by an agent
Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol
A combining mark written before any glyph in an earlier carriage-return
frame stays at the start of the line in a live terminal; saved notebook
previews dropped it when collapsing redraws.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Macroscope's review found this PR approvable — Saved notebook redraws now retain leading Unicode marks without duplicating them during frame slicing. The change is limited to text rendering and carries no apparent material operational or data risk.
You can add or adjust custom eligibility rules. Learn more.
Reviewing files that changed from the base of the PR and between 28ac914 and 006b69d.
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
Terminal redraw reconstruction now preserves leading Unicode marks when it builds the final row. Unit and browser tests cover carriage-return redraws, plain-text output, and rendered notebook output.
Changes: Terminal redraw output
Layer / File(s)
Summary
Preserve and verify leading marks packages/shared/src/terminalOutput.ts, packages/shared/src/terminalOutput.test.ts, scripts/scenarios/notebook-redraw-keeps-leading-combining-mark.e2e.ts
lastFrame collects leading marks during redraw reconstruction. Unit tests check collapsed output and plain-text output. The browser test checks that notebook output retains a leading combining mark.
This fixes saved notebook previews dropping a leading combining mark after a carriage-return redraw. The change is small and self-contained with unit and browser test coverage, and I found no merge-blocking risk.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the fix and the affected area: saved notebook redraws now keep a leading combining mark. It matches the main change in terminalOutput.ts and the new redraw tests and e2e scenario. It i…
Description check
The description covers the problem, the change, the reproduction on main, verification evidence (failing test before the fix, passing on head, check:changed run), and the scope of what is excluded. It…
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 fix and the affected area: saved notebook redraws now keep a leading combining mark. It matches the main change in terminalOutput.ts and the new redraw tests and e2e scenario. It is specific and follows a conventional commit format.
Full details: Description check
Explanation
The description covers the problem, the change, the reproduction on main, verification evidence (failing test before the fix, passing on head, check:changed run), and the scope of what is excluded. It follows the template's Problem, Change, Verification structure. The Scope section does not link a specific issue; it refers to #45612 as related and does not explain why the fix needs no issue or name a maintainer request. The template asks for that, so this is a minor gap. The description also reports the author and tooling, which the template requests.
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; 5 remain after this review.
Environment: real web app, Chromium on Linux, 1440×1000, light theme, fresh isolated databases, Replay (dev).
Create demo/results.ipynb (nbformat 4.5, python) with one code cell and one stdout output containing decoded "a\r\u0301\ra done". Seed a Review results thread with See :codex-file-citation{path="results.ipynb"}. Open the thread, expand its message, click the citation, wait for the saved notebook cell to render, capture it, and read the output element. Base renders "a done"; head renders U+0301 followed by "a done".
Scenario: Saved notebook redraw retains an earlier leading combining mark
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:M30-99 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.
Saved notebook previews dropped a combining mark that a stream wrote at the start of an earlier carriage-return frame, so
a\r\u0301\ra doneshoweda donewhile the live terminal shows\u0301a done. Collapsing saved redraws now keeps each earlier frame's leading zero-width marks exactly once, including when the final frame is empty or mark-only. The redraw tests now check that the saved and live results match.Related: #45612
Reproduction on main
Commit f12f153155 (main). The preview displays
a donewith the accent missing. Expected: The final output starts with the combining acute accent, matching the same output in a live redraw.The cause is at
packages/shared/src/terminalOutput.ts:1126. Ranpnpm scenarios:prove scripts/scenarios/notebook-redraw-keeps-leading-combining-mark.e2e.ts --target webwith the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, withexpected "a done" to be "́a done"in the output.Evidence
Environment: The web app in Chromium on Linux x64, a fresh checkout on a boat.dev VM reset before each run.
Proven: the repro fails at the test commit 47a0845d4a and passes on the head 28ac9144c2, both on main 975b7aa892.
The preview displays
a donewith the accent missing.The final output starts with the combining acute accent, matching the same output in a live redraw.
Tests
pnpm exec vp run check:changed 975b7aa8927cba98daa84e393e2640b4973c963cpassed on head.Not in this change
replaySavedLine), which also drops a leading mark when column 0 is repainted (e.g.a\r\u0301\ra\tb); that is a separate code path.Who did the work
Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol