[BUG] Valid markdown links in Claude Caude VsCode extension do not open files
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?
The links Claude code gives me to files in my workspace do not open. They're clickable, but nothing happens. I have tried:
- Asking Claude to use absolute paths, did not work
- Asking Claude to use relative paths (the default), did not work
- Asking Claude to show me the markdown for the links: nothing obviously wrong with it -- I can use the same markdown in a file at the root of the workspace, preview it in a VsCode editor, the link works
I've also tried mucking with the paths, in case for some reason the Claude window considers itself inside a different directory than the workspace root, like adding ..\ or conversely removing some of the leading directories,
I'm on Windows.
Interestingly: the following works:
- Clicking a file link from Claude's "thoughts". E.g. "Read [file...]", or "Edit [file...]", those correctly open the file when clicked
- Using a WSL projects, when that's the case, all the links work fine. I can't use WSL for this project though.
Even Claude gave up: "I'm out of ideas - we've tried backslashes, forward slashes, absolute/relative paths, with/without line numbers, and different formats. Since markdown links aren't working but plain text paths are clear enough, should I update CLAUDE.md to just say "provide plain text file path instead of links"?"
What Should Happen?
The links provided by Claude code should be clickable.
Error Messages/Logs
Steps to Reproduce
- Create a VsCode project on windows with files in it
- Open Claude code - I am using the new version (not console terminal)
- Prompt: "Show me a link to one of my files"
- Claude responds with a link
- Click the link
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.31
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗