Repository navigation
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Describe the enhancement
URLs in chat are handed to the OS default handler (the browser). File paths in chat are not: there is no way to open a referenced file in an external application on any platform, and OS file associations are never consulted.
Two levels of this feature, either would be valuable:
1. Minimal — delegate to the OS default application. When a file path is clicked/opened from chat, hand it to the platform handler (start on Windows, open on macOS, xdg-open on Linux). The user's system file associations decide what opens. No config needed.
2. Full — a config mapping file extensions to external commands, for users who want more control than the OS default:
{
"file_open": {
"*.md": "cmd /c start chrome",
"*.pdf": "open",
"*.html": "xdg-open"
}
}If a full mapper is not feasible, level 1 alone would already close the biggest gap — right now there is no external-open path at all.
Reproduction (observed)
On Windows (TUI, opencode 1.18.29):
- Ask the agent to reference an absolute path, e.g.
C:\Users\...\report.md - Plain click the path → nothing happens
- Ctrl+click the path → nothing happens
- A markdown
file://link to the same file → nothing happens
The same asymmetry (built-in viewer only, no external dispatch) applies on macOS and Linux; the click handling itself may differ per platform, which is why the proposed mechanism is deliberately platform-agnostic.
Why
- Symmetry: links already dispatch to the OS default handler; this is the same mechanism with one more dispatch type, useful on every platform.
- Recurring demand: related requests already exist:
- Desktop: make file paths in chat clickable (open in editor / reveal in Finder) #37891 — make file paths in chat clickable (open in editor / system default app / Finder, macOS)
- [FEATURE]: markdown preview of project files in the TUI #43598 — markdown preview of project files in the TUI
- Desktop: file:// markdown links are not clickable #44902 — file:// markdown links are not clickable (Desktop)
- tui: Ctrl+click does not open Markdown links when mouse capture is active #44442 — Ctrl+click does not open markdown links when mouse capture is active
- PRs feat(tui): markdown preview panel #43599 and feat(app): markdown preview toggle for file viewer and clickable file paths in chat #46793 explore preview panels and clickable paths — this complements them.
Expected behavior
- Minimal: any file reference → OS default application, honoring system file associations.
- Full: mapped extensions → the user's configured command/app; unmapped extensions fall back to the minimal behavior.
- No new UI surface needed — just a dispatch to the OS.
Activity
opencodejr commentedon Oct 28, 2026
Thanks for the detailed write-up!
You reproduced this on opencode 1.18.29, which is OpenCode v1. v1 now only gets critical fixes (data loss, security problems, crashes with no workaround), so a new feature like opening chat file paths in an external application is unlikely to be added there.
We'd encourage upgrading to OpenCode v2 (the
@opencode/clinpm package), where active development happens. If the v2 TUI also has no way to open a referenced file externally, please open a new feature request against v2 (or reply here) and we'll look at it there. Please also reply if you think this is critical.Related issues:
file://markdown links not clickable, Desktopopencodejr commentedon Oct 29, 2026
Closing this as not planned. It was reported on opencode 1.18.29 (v1), which only gets critical fixes, and we haven't heard back about whether v2 behaves the same way.
If the v2 TUI (
@opencode/cli) also gives you no way to open a referenced file in an external or OS-default application, please open a new feature request against v2. Please include the version and your platform. Related: #37891, #44902, #43598, #44442. Thanks again for the detailed write-up!