claude-code - 💡(How to fix) Fix Feature Request: Make file paths in chat output clickable [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49693Fetched 2026-04-17 08:34:05
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Author
Timeline (top)
labeled ×3commented ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When Claude outputs a file path like drafts/github-issue-timestamps.md, it's plain text — the user cannot click it to open the file. In contrast, URLs starting with https:// are rendered as clickable links.

This forces users to manually navigate to files that Claude just created or referenced. In a typical session, Claude references file paths dozens of times (after creating files, editing them, or suggesting the user review them). Each time, the user has to copy the path, open Finder or a terminal, and navigate manually.

Proposed Solution

When Claude Code's UI detects a file path in the assistant's output that corresponds to an actual file in the working directory, render it as a clickable link that opens the file in the editor or preview pane.

This is standard behavior in VS Code's terminal (file paths are clickable) and could follow the same pattern.

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

Interactive mode (TUI)

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Render file paths as clickable links in Claude's UI to enable easy navigation to referenced files.

Guidance

  • Identify the file path pattern in Claude's output to determine the correct regex or string matching approach for detection.
  • Modify the UI rendering logic to wrap detected file paths in an anchor tag or equivalent, allowing them to be clickable.
  • Ensure the clickable link opens the file in the default editor or preview pane, similar to VS Code's terminal behavior.
  • Consider handling cases where the file path does not exist or is not accessible to prevent errors.

Example

No specific code example can be provided without knowledge of the UI framework or technology stack used by Claude. However, the general approach would involve using a templating engine or string replacement to insert an anchor tag around the detected file path.

Notes

The solution may require adjustments based on the specific UI framework, operating system, or file system being used. Additionally, security considerations should be taken into account to prevent potential vulnerabilities when rendering user-supplied file paths as clickable links.

Recommendation

Apply workaround by modifying the UI rendering logic to support clickable file paths, as this is a critical feature request that blocks the user's work.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Feature Request: Make file paths in chat output clickable [1 comments, 2 participants]