GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(shared): a Markdown piece held open for a wrapper is cut before it passes 128 KB by Marve10s · Pull Request #42040 · pingdotgg/t3code Conversation
Contributor
ProblemSince #41596, A piece past CodeRabbit raised this on #41596 (thread) after its last round of fixes, and it merged before I followed up. Change
ScopeThis is a small follow-up to #41596, so it has no issue. It changes nothing for a piece that stays under 128 KB. VerificationPiece sizes for the input in the CodeRabbit thread ( Three more expectations in the existing "keeps HTML blocks and display math open across blank lines" case in
Claude Opus 5.5 (Claude Agent in T3 Code) wrote the fix and test from CodeRabbit's finding on #41596. Claude Opus 5.5 (xhigh), GPT-6.2 Sol, GPT-6.2 Astra (high, Codex), and Claude Fable 5.2 reviewed the patch in T3 Code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Held cut handling and boundary tests packages/shared/src/markdownChunks.ts, packages/shared/src/markdownChunks.test.ts |
splitMarkdown records cut points while wrappers are open and splits an oversized chunk at the held cut. flush clears the held cut. Tests check the size boundary and a fenced block inside <details>. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
f0cf9This change keeps oversized Markdown pieces from growing past the 128 KB limit when an HTML wrapper is open, so they render normally instead of falling back to plain source. No merge-blocking risk was found.
Explanation
The title names the main change: splitMarkdown now cuts a piece held open for an HTML wrapper before it passes LARGE_MARKDOWN_CHUNK_MAX_CHARS (128 KB). It follows the conventional commit format and matches the raw summary, the PR description, and the objectives.
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the bug with reproduction input. The Change section explains the fix. The Scope section says why no issue is linked and cites the follow-up to #41596. The Verification section lists piece-size results, test expectations, and the check command. It also states what was not checked (browser behavior). The author lists the models used, as the template requests.
53fb481f-4ac6-49e1-8d9d-152e474bc6eepackages/shared/src/markdownChunks.test.tspackages/shared/src/markdownChunks.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceWeb: Chromium, 1280×800, light theme, fresh isolated servers and synthetic Replay fixtures. Desktop: real Linux Electron 44.10.1 under Xvfb, 1280×800, light theme, isolated data. Mobile: same pooled iPhone 18 Pro, iOS 27.2, 402×874, light theme, separate server and Metro per commit. Manual stills were checked for identical pixels at least 500 ms apart. Steps: create the reported wrapped paragraph and wrapped JSON-fence files with 8,192 a characters and 126,976 b characters; create unwrapped controls and an exactly 131,072-character ASCII wrapper file; seed a project/thread; open Files and select rendered Markdown/Preview; inspect disclosures and long blocks. Repeat on base and head. Native comparisons use the two wrapped files. The web scenario exited 0: it observed the source fallback on base and no fallback on head. Desktop and iOS independently show the reported difference.
Visible overflow tradeoff: above 128 KiB, head releases the wrapper hold. The 8 KiB paragraph remains in Details while the long b paragraph or fence renders outside the collapsed section. This is shown explicitly; the proof establishes render eligibility, not preservation of the oversized wrapper’s collapse semantics. At exactly 131,072 ASCII characters/bytes, the wrapper remains intact on both commits. Supplementary iOS evidence: Full scenario evidence, including expanded states and paragraph controls. Before recording · After recording. These recordings include wrapped rendered views; the stills are the primary static-rendering evidence. Web scenario · Desktop driver · Mobile seed · Stable mobile capture driver. No scripts or captures were committed. Temporary servers, device lease, worktrees, and scratch files were cleaned up. Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.