Desktop app: no way to open HTML files as source in the file pane (always renders in Browser pane)
Environment
- Claude Desktop app (com.anthropic.claudefordesktop) on macOS 15 (Darwin 24.3.0)
Current behavior
Clicking a file link to a local .html file in the chat always opens it rendered in the internal Browser pane. All other text file types (.js, .md, .css, ...) open as source in the file pane.
There is currently no way to view the HTML source inside the app:
- No "Open as text/source" entry in the right-click context menu (only "Open in" external editor, "Show in Finder", "Copy path")
- No modifier-click variant (Cmd+click is reserved for external links)
- No view-source toggle in the Browser pane
- No setting to change the behavior
This matches the documented behavior ("Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the Browser pane instead."), so this is a feature request, not a bug report.
Why this is painful
Our project builds a single-file HTML artifact (dist/index.html, ~730 KB, HTML+CSS+JS for a FileMaker WebViewer). When Claude links that file in its answer, clicking it renders a preview, but what we routinely need is to inspect the generated source. The only workarounds are jumping to an external editor or having Claude write a .txt copy of the file, both of which break the in-app flow that works fine for every other file type.
Suggested solutions (any one of these would solve it)
- Context menu entry "Open as source in file pane" for HTML/PDF-class files
- Modifier-click (e.g. Alt+click) opens the raw file in the file pane instead of rendering it
- A setting to opt out of Browser-pane rendering for file links per extension
Expected behavior
Same choice as for every other text file: a way to view the raw source in the internal file pane.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗