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
Cmd+click on local file paths opens wrong URL (http instead of file://) #19144
Bug Description
When cmd+clicking on a local file path (e.g., README.md, src/app.ts) in a chat message, OpenCode tries to open it as an HTTP URL instead of a local file.
Steps to Reproduce
Have a project open in OpenCode Desktop
Send/receive a message containing a local file path like README.md
Cmd+click on the file path
See error: "Unable to connect. Is the computer able to access the URL?"
Expected Behavior
Local file paths should open using the file:// scheme, which opens the file in the default application (e.g., mkdn for .md files).
Root Cause
In packages/desktop-electron/src/main/ipc.ts, the open-link handler passes bare file paths directly to shell.openExternal(), which treats them as HTTP URLs.
Fix
Convert bare file paths (those without a scheme like http://, file://, etc.) to file:// URLs with resolved absolute paths before calling shell.openExternal().
Testing
Verified that clicking README.md now opens in the default markdown viewer (mkdn)
Verified that file://, https://, and other schemes still work correctly
Activity
fix(desktop): open local file paths with file:// scheme
Meligy commentedon Jul 4, 2026
Looks like this issue was closed by mistake because of merging a PR in the fork. The issue is still present in: Version 1.17.13 (1.17.13)