You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Make local file paths clickable in terminal output #58242
I have verified this feature I'm about to request hasn't been suggested before.
Local file paths the agent prints — reports/, test_report.xlsx, /home/user/file.md — are plain text in the V2 TUI. Only http(s):// links are clickable, so I have to copy-paste the path and run open <path> by hand.
It'd be a big quality-of-life win if paths that exist on disk rendered as clickable links that open in the system default handler, like iTerm2/VS Code/delta do. I hit this every time a task generates reports, charts, or docs and I want to open them to review.
The desktop/web UI already does this via localFileExists/openLocalFile in session-ui, but the TUI never wires it up, and openUrl() (packages/util/src/open.ts) only allows http/https. openPath() already exists and could be reused for the click action.
Refiled from #19005 (closed "not planned" for V1, with a request to re-file against 2.0). Prior desktop/web requests (#17209, #11432, #17816) don't cover the 2.0 terminal TUI.
Thanks for the detailed request and for refiling it against 2.0!
To restate: you'd like file and directory paths in agent output that exist on disk (e.g. reports/, test_report.xlsx, /home/user/file.md) to be clickable in the V2 TUI and open in your system's default app, the way http(s) links already do. You're right about the cause: the TUI's link handler only accepts http/https, and nothing in the TUI turns plain paths into links yet. The maintainers will consider this.
I second this request and here my example: I'm using OpenCode V2 in Kitty on Linux (KDE Plasma). My model generates images with clickable file:// Markdown links, but clicking them fails with: Only http and https links can be opened in the browser
I'd expect local files to open via xdg-open, using the default application (e.g. Gwenview for PNGs).
PR #55769 seems to address this. Would be great to have it supported in the V2 TUI.
Activity
opencode-agent commentedon Oct 22, 2026
Thanks for the detailed request and for refiling it against 2.0!
To restate: you'd like file and directory paths in agent output that exist on disk (e.g.
reports/,test_report.xlsx,/home/user/file.md) to be clickable in the V2 TUI and open in your system's default app, the way http(s) links already do. You're right about the cause: the TUI's link handler only accepts http/https, and nothing in the TUI turns plain paths into links yet. The maintainers will consider this.Related issues:
This can't be built as a plugin at the moment, because TUI plugins have no way to change how message text or links are rendered.
cccplex commentedon Oct 27, 2026
I second this request and here my example: I'm using OpenCode V2 in Kitty on Linux (KDE Plasma). My model generates images with clickable
file://Markdown links, but clicking them fails with:Only http and https links can be opened in the browserI'd expect local files to open via
xdg-open, using the default application (e.g. Gwenview for PNGs).PR #55769 seems to address this. Would be great to have it supported in the V2 TUI.