[Bug]: `Cmd+A` in the rendered Markdown file viewer selects the entire app instead of the open document
What happened
Pressing Cmd+A while reading a rendered Markdown file in the file viewer (right-hand Files panel) selects every text node in the renderer — the chat transcript, message metadata, the composer hint, the file tree, and the breadcrumbs — instead of only the open document. Cmd+C immediately after copies the whole UI rather than the file's text.
Steps to reproduce
- Open a thread so the chat transcript is populated.
- Open a
.mdfile in the file viewer panel so it shows the rendered preview. - Click inside the rendered Markdown.
- Press
Cmd+A.
Expected behavior
The selection covers only the rendered content of the open file, and Cmd+C yields that text — no pane chrome, no tab bar, no breadcrumbs, no file tree, no chat.
Actual behavior
The selection spans the chat transcript, message metadata, composer hint text, file tree, breadcrumbs, and the Markdown body. Cmd+C copies the whole interface.
The source view of the same file does not behave this way; the rendered preview appears to be the affected path.
Impact
Minor bug or occasional failure
Version or commit
T3 Code Nightly 0.1.8-nightly.20261104.4165 (macOS, Apple Silicon). Present on main as of 2026-11-04: apps/web/src/components/files/FileMarkdownPreview.tsx renders through ChatMarkdown with no focusable surface and no mod+a handler.
Environment
macOS 26 / Apple Silicon, T3 Code desktop app. Ctrl+A is expected to behave identically on Windows and Linux.
Logs or stack traces
None. This is a selection-scope behavior, not a crash.
Workaround
Drag-select the text, or triple-click a paragraph.
Related
- #15927 — copying from the Files panel returns only part of the file. That report and its in-flight draft fix (#23248) concern the read-only source preview, where the
@pierre/diffsvirtualizer only mounts a window of rows, so aCmd+Aproduces a truncated copy of the file. This report is about the rendered Markdown preview, a different component (FileMarkdownPreview→ChatMarkdown) with a different failure: the selection is too broad and includes the surrounding application UI. A partial one-off comment in #15927 also mentions thatCtrl+Athere selects the whole app UI; that is the closest overlap, but the fix under review there does not touch the rendered Markdown path.