GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@rekram1-node rekram1-node commented Nov 23, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
rekram1-node added 2 commits November 22, 2026 21:13
@rekram1-node
fix(app): open ~ file links in the server's home folder
963d960
@rekram1-node
test(app): space home path assertions
7640ac7
opencodejr[bot]
opencodejr Bot reviewed Nov 23, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 23, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@rekram1-node
rekram1-node merged commit b3f233c into dev Nov 23, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the tilde-file-links branch November 23, 2026 03:25
@dezren39 dezren39 mentioned this pull request Nov 23, 2026
chore: merge anomalyco/opencode dev b705c446f0 and pin mcpx-src 2dc8cb8 developing-today-forks/opencode#2694
Merged
3 of 6 tasks
This was referenced Nov 23, 2026
fix(files): a reply's ~ path is a link when the file is in the server's home, as official's anomalyco/opencode-rune#826
Merged
Desktop: a ~ path in a reply is never a link (the app holds no home folder for the server) #65772
Open
fix(app): learn the server's home folder when the server connects after the window opens #65773
Draft
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@rekram1-node
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.