[BUG] File path links rendered as HTTP URLs instead of local file links
Open 💬 1 comment Opened Jan 16, 2026 by ricardofrantz
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When Claude Code outputs file paths (e.g., src/main.py, output/chart.svg, docs/report.pdf), clicking on them opens an HTTP link instead of the local file.
The file path appears as a clickable hyperlink, but it navigates to an HTTP URL rather than opening the file with the system's default application.
What Should Happen?
Clicking on a file path should open the file using the system's default application based on file type:
- Images (
.png,.jpg,.svg) → Preview or default image viewer - - PDFs → Preview or default PDF reader
- - - Code files (
.py,.js,.dat) → Default text editor or IDE - - - - Other files → System default handler for that extension
Error Messages/Logs
Steps to Reproduce
- Run Claude Code in the terminal
- Ask Claude to create or save a file (e.g., "save this plot as output.png")
- Claude outputs a message like:
Saved plot: output/plot.png - Click on the file path link in the terminal output
- Observe: Browser opens with an HTTP URL instead of the file opening locally
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.9
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
Additional observation from testing:
- Single filenames (e.g., output.png) are NOT clickable
- - Paths with directories (e.g., folder/file.png) ARE clickable, but open as HTTP URLs in the browser instead of opening the local file
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗