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
Desktop: clicking a conversation file link outside the workspace always fails to load #54540
Clicking a file in a conversation (e.g. a file the agent just wrote) shows "Failed to load file" whenever the file lives outside the current workspace root. Plain .md files fail as well, so this is not a preview/format issue.
Server log for such a click:
GET /api/fs/read/ http.status=404
The request URL carries only the bare filename, without any directory, so the server resolves it against the workspace root and every file outside the workspace returns 404. Previewing the same file with an absolute path through the agent's preview tool works fine, so the file itself is readable - this is purely how the Review pane resolves the link.
Related symptom: "Open in File Explorer" on the failed item opens the workspace root instead of the folder that actually contains the file.
Suggestion: resolve the link as written (absolute path, or relative to the session's working directory), and offer a fallback (reveal in folder / open with / copy path) when loading fails.
Plugins
None (default install, no plugins configured)
OpenCode version
Desktop 2.0.26 (bundled CLI 1.4.2)
Steps to reproduce
Open a project whose workspace root is any folder (an empty folder is enough).
Ask the agent to write a file outside it, e.g. onto the Desktop.
Click that file in the conversation to preview it in the Review pane.
Result: "Failed to load file" on every click, for any file type. In one day of normal use this produced 21 logged 404s - files on the Desktop, files in other project folders, and even a repo-like token such as "mihomo-party-org/clash-party" that the UI turned into a file link.
Screenshot and/or share link
No screenshot. Evidence is the server log line quoted in the description, recorded in %USERPROFILE%.local\share\opencode\log\opencode.log on Windows.
Activity