[Bug]: Web clients can't open chat HTML/PDF file links in a browser #15929
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Have an agent reply in a chat with a markdown link to an HTML or PDF file in the project, for example
[q3-summary.html](/abs/path/reports/q3-summary.html)or[architecture.pdf](/abs/path/reports/architecture.pdf). - Open that thread in a web client:
npx t3/vp run devin a browser, or a remote browser over LAN/Tailscale. - Right-click the file chip.
Expected behavior#
There is some way to view the file rendered, as there is for URL links in the same chat. Those offer Open in system browser (apps/web/src/components/chat/externalLinkContextMenu.ts) and follow the Open links in setting.
Actual behavior#
No menu item opens the file in a browser.
- Local web client: Open in Cursor, Reveal in Finder, Copy relative path, Copy full path.
- Remote web client (Tailscale origin): Copy relative path, Copy full path.
Left-clicking the chip opens a Files panel tab instead of a rendered page; in this repro that tab stayed blank after 5 seconds, which I did not investigate further. A browser on another machine also can't reach the environment's filesystem, so on web there is no way to see the agent's HTML report or PDF rendered.
The rendered-view action is gated on the desktop integrated browser: ChatMarkdown.tsx L2797–2803 only sets onOpenInBrowser when isPreviewSupportedInRuntime(). Desktop has the same gap in a smaller form: file links can open only in the integrated browser, never in the OS browser.
Impact#
Major degradation or frequent failure
Version or commit#
main a1d9d72aef (reproduced 2026-10-05)
Environment#
macOS 26.5.2 (arm64), Google Chrome 154.0.8037.93, Node 24.21.0; vp run dev --share with isolated dev state. Local origin http://localhost:7720; remote origin is the dev runner's Tailscale Serve HTTPS URL (same Mac).
Screenshots, recordings, or supporting files#
Local web, right-click on q3-summary.html:

Local web, right-click on architecture.pdf:

Remote web (Tailscale origin), right-click on q3-summary.html:

Local web, left-click on q3-summary.html (the Files panel opens, but no rendered page):

Not verified: hosted app.t3.codes, Safari/Firefox, a client on a separate machine.
Workaround#
Copy the full path and open the file some other way on the machine that hosts the environment. That isn't possible from a remote browser.
A fix is proposed in #7641.
juliusmarminge added labelsbug
juliusmarminge added labelsvia-triage
Added Linux validation of joshka's proposed branch, which also targets this web-client gap. Tested commit
d26c68b576740fd9d4e358eb85b59f9231043012on Arch Linux x86_64 / Node 24.22.0.The focused existing tests give 104 passing, 1 failing (a permissions-test navigator mock regression; the parent passes that file 7/7). Web typecheck passes, targeted lint exits 0 with warnings, and six supplemental helper tests pass. Real-client verification was blocked by repeated built-in Browser panel automation timeouts; this does not verify the user-facing fix, popup blockers, or remote behavior.
Exact commands, full results, limitations, and logs. No new PR or implementation changes; product scope remains with the existing Ideas discussion.
Testing/report: GPT-6.1-Sol via Codex in T3 Code.
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Thanks for the report. One part of this is fixed on main in #21095. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: HTML file preview and a web open-in-browser action. If that part still matters to you, please open a new issue for that part only.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Triage#
Thanks @saphid for the thorough write-up and screenshots across local and remote web clients. Having both menus side by side made the gating easy to follow.
What I found#
37de6cb; the file-link logic is unchanged sincea1d9d72).isPreviewSupportedInRuntime()is true (theonOpenInBrowserprop inapps/web/src/components/ChatMarkdown.tsx). That check iswindow.desktopBridge?.preview(apps/web/src/previewStateStore.ts), so browser clients never get it, and the item it adds today is Open in integrated browser, not the system browser.canUseMarkdownFileShellActions, which requires a resolved local-exec environment. That's why a Tailscale origin shows only Copy relative path and Copy full path.apps/web/src/components/chat/externalLinkContextMenu.ts). File chips don't use it.openFileInPanel, which signs an asset URL and shows the file in a frame, anddocs/user/composer.mddescribes these files opening as rendered pages on web and desktop. That viewer isn't gated on the desktop bridge, so it should work from a remote browser.q3-summary.htmltab is open but the panel body is empty: no breadcrumbs, file tree, spinner, "Unable to load file preview", or document. That empty viewer is the clearest failure here; the screenshot doesn't show why the frame failed to load.chrome-error://chromewebdata/while source view works) and #11588 (adds an error state when a preview frame fails). #7641 is closed, so there's no open fix PR for this yet.Likely fix area#
The web file viewer path behind
openFileInPanel(asset URL signing and the preview frame) for HTML/PDF on browser clients, especially over a remote origin. Separately, whether file chips on web should also offer an open-in-system-browser action is a product question. Any console or network errors from that blank panel would help narrow down why the frame doesn't render.A maintainer will decide on the fix direction.