GeezerVison is showing github.com — fix(app): open ~ file links in the server's home folder by rekram1-node · Pull Request #65689 · anomalyco/opencode
Conversation
rekram1-node
commented
Nov 23, 2026
•
edited by opencodejr
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Clicking a file link like ~/Downloads/clip.mp4 in a message showed "File not found", because the app treated ~ as a folder inside the workspace. Agents write home paths like this often, so now ~ expands to the server's home folder, which the app already loads from the server.
[clip](~/Downloads/clip.mp4)
- → <workspace>/~/Downloads/clip.mp4 → "File not found"
+ → /Users/me/Downloads/clip.mp4 → opens in the side panel
createPathHelpers (the app's Files.resolve) expands ~ and ~/… using the server's reported home folder. A path under the workspace still comes out relative. ~user/… is left alone.
- The file link handler treats home paths as absolute, so a
~ link inside a document isn't resolved against that document's folder and skips the workspace search.
- The link-exists check, which used to always say no for
~, now checks the expanded path. Inline-code paths like ~/notes/a.md become clickable when the file exists.
Until the server reports its home folder, ~ paths behave as before.
Checks: new cases in packages/app/src/workspaces/files/path.test.ts and packages/gui-plugins/src/file/resolve-link.test.ts; bun test src/workspaces/files (app, 74 pass), bun test src/file (gui-plugins, 196 pass), bun typecheck in both. I didn't click through it in the running desktop app.
Added by the opencode bot (AI-generated).
Related: #55171
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sound; I found nothing that should block a merge.
I compared the changed helpers on the base and with this PR. On the base, ~/Downloads/clip.mp4 stays as typed and the link check returns false. With the PR it becomes the server's home path and the link check returns true. A ~ path inside the workspace comes out relative, and ~user/… is left alone. The app and gui-plugins tests pass, and tsc is clean in both packages. I didn't run the desktop/web app, so I haven't seen a click open the side panel. A short before/after clip from the app would confirm it.
Public API is unchanged: this only touches internal app and built-in plugin code.
Related: #55171
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit only adds blank lines to a test file, so behaviour is unchanged and my earlier review still applies. I have no new concerns. Public API is unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|