Skip to content

Desktop: make file paths in chat clickable (open in editor / reveal in Finder) #37891

Description

@tauseefkhan-max

Summary

In the OpenCode desktop app, file and folder paths rendered in assistant messages look like interactive chips/links, but they are not clickable. Markdown file:// links are also not clickable. There is no way to open a referenced path in the built-in editor, system default app, or Finder/Explorer from the chat transcript.

Environment

  • OpenCode Desktop (macOS)
  • Model: Grok 4.5 (via OpenCode)
  • Observed: 2026-07-20

Steps to reproduce

  1. Ask the agent to list files in a folder (or any reply that includes absolute paths).
  2. Paths render as styled chips (gray background), e.g. `/Users/.../file.md`.
  3. Click a chip → nothing happens.
  4. Ask the agent to emit markdown links instead:
    [file.md](file:///Users/me/project/file.md)
  5. Click the link → nothing happens (links are not interactive).

Expected

Clicking a path/link in chat should offer a useful action, for example:

  • Primary click: open file in OpenCode’s built-in editor / file browser tab
  • Secondary / modifier: Reveal in Finder (macOS) / Explorer (Windows) / file manager (Linux)
  • Folders: open in file browser or reveal in Finder
  • Optional: path:line / path:line:col jumps to location

Actual

Paths and file:// markdown links are non-interactive. Users must copy the path and run something like:

open -R "/full/path/to/file"

or ask the agent to run open for them.

Why this matters

Agents constantly point at files they created or edited. Click-to-open is table stakes in Cursor/VS Code/Claude Code-style UIs and removes a constant copy-paste friction, especially for non-code artifacts (PDFs, PNGs, .docx, data folders).

Related

Suggested acceptance criteria

  1. Absolute and workspace-relative paths in assistant markdown become clickable.
  2. Click opens the file in the desktop file browser/editor when possible.
  3. Right-click or modifier-click reveals the path in the OS file manager.
  4. Invalid/missing paths show a clear toast instead of silently doing nothing.
  5. Works for both inline code paths and markdown links (file:// and relative).

Thanks — happy to test a nightly/desktop build.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions