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(web): Cmd/Ctrl+A in rendered large Markdown previews selects only the file by only21mil · Pull Request #44935 · pingdotgg/t3code Conversation
Contributor
ProblemWhen pressing Ctrl+A (Cmd+A on macOS) in a rendered Markdown preview over 1 MB, the browser selects the whole T3 Code UI (sidebar, chat, tabs, breadcrumbs, file tree) and Ctrl+C copies app chrome plus mounted chunks instead of only the preview and the whole file. Change
ScopeBug fix for a regression from #40631 (wrong data copied when Select All escapes large Markdown previews); small fix of an obvious bug, no issue needed. VerificationAn AI agent ran each check below.
Not shown:
Repro fixture generator, Browser panel observations, and raw test outputGenerate python3 - <<'PY' from pathlib import Path Path("small.md").write_text( "# Small Markdown Control\n\n" "Opening paragraph in the small control file.\n\n" "## Closing Section\n\n" "Final sentinel line of small.md.\n", encoding="utf-8", ) sections = ["# Large Markdown Preview\n\nOpening sentinel line of big.md."] body = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * 10 for i in range(1, 2501): sections.append(f"## Section {i}\n\nParagraph {i}: {body}") sections.append("## Final Section\n\nClosing sentinel line of big.md.\n") Path("big.md").write_text("\n\n".join(sections), encoding="utf-8") PY Browser panel selection and clipboard observations:
Base Head Generated with Gemini 4 Neon in T3 Code Nightly
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.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Preview selection handling apps/web/src/components/files/ChunkedMarkdown.tsx, apps/web/src/components/files/FilePreviewPanel.tsx, apps/web/src/components/files/FilePreviewPanel.browser.test.tsx |
ChunkedMarkdown handles platform-specific Select All shortcuts and selects its rendered children. FilePreviewPanel removes the previous handler. A browser test checks that selection excludes transcript text and copying returns the full fetched Markdown. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, wraient, alboumkw
128beSelect All in rendered Markdown previews now stays within the preview, including large files, and a regression test covers it. No merge-blocking risk was found.
Explanation
The title names the main change: Cmd/Ctrl+A in large rendered Markdown previews was selecting the whole app instead of only the file. The changeset moves the Select All handler into ChunkedMarkdown and adds a regression test, so the title matches. It uses the conventional commit format and is specific.
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the bug and the reproduction. The Change section lists the moved handler, removed prop and imports, and the new test. The Scope section calls this a bug fix and links prior PRs. Verification gives focused test results, commit links, and before/after screenshots. It states what was not checked, which are macOS Cmd+A, desktop, and mobile. The description does not follow the template's required line about the model and harness in full, but it does note 'Generated with Gemini 4 Neon in T3 Code Nightly' at the end, so that item is covered.
d9a97228-c36c-4050-ae99-07cff7740c8aapps/web/src/components/files/ChunkedMarkdown.tsxapps/web/src/components/files/FilePreviewPanel.browser.test.tsxapps/web/src/components/files/FilePreviewPanel.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceReal web app, Chromium 156 on Linux, 1280×800, light theme, fresh state on each commit. Open a roughly 1.5 MB big.md in rendered mode, click Paragraph 1, press Ctrl+A, Ctrl+C, then paste into a textarea and inspect its ending. The scenario failed on base and passed on head. Before, selection includes app chrome and chat, and copied text omits the closing sentinel. After, selection stays inside the preview and pasted text exactly matches the complete source, including unmounted paragraphs and the closing sentinel.
Scenario driver and synthetic fixture 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.
…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
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.