Make mentions of project files clickable
When Claude makes plans, it mentions file locations within the project, e.g.:
Files to modify:
lib/core.ts:94- Change foo fromXtoY
It would be great if these locations were clickable links that opened the relevant file (and line or symbol) in the Zed editor.
Yes, please!! Links for project files generated in agent panel thrown an error when clicked: The application cannot be opened.
[@filename](file:///absolute/path/to/filename#L42) works for me
Sure, but the LLMs often just write relative/path/to/filename instead. I agree that they should be rendered clickable. Thanks
My Codex integration had the problem of broken links as well, and I fixed it by adding this instruction to AGENTS.md (they render not as chips but in default HTML link style, but at least they aren't broken anymore).:
<ZED AGENT ONLY>: If you mention a file in your response, use [%filename%.%extension%](file://%filepath%.%extension%) syntax to create a link to it, where it makes sense.
If you mention a symbol (function, variable etc.), use this format: [%symbol_name%](file://%filepath%.%extension%#L%line_number%)
Beat them with their weapon, as they say
A simpler option for workspace files: #57303 added clickable backticked paths, such as src/main.rs or src/main.rs:42. The code is already in Zed 1.30.2, including the Claude ACP view.
The file must be indexed in the workspace; paths in fenced code blocks stay plain. Explicit file links remain a fallback. I checked the code, but haven’t tested clicking these on Windows.
Could we mention this existing support here and clarify what’s still missing?