Uh oh!
There was an error while loading. Please reload this page.
fix(opencode): resolve symlinks to directories in project picker - #10366
fix(opencode): resolve symlinks to directories in project picker#10366frizikk wants to merge 4 commits into
Conversation
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR:
This PR also deals with symlink handling in the |
frizikk
commented
Jan 24, 2026
Security ConsiderationI'm aware of #8313 and the related PR #8727 addressing path traversal via symlinks.
|
f1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Fixes#10365
Summary
Symlinked directories weren't visible in the project picker because
entry.isDirectory()returnsfalsefor symlinks.Changes
Added symlink detection with parallel target resolution:
Filesystem.isDir()(Bun API)stat()only for symlinks (short-circuit)Promise.all()Files
packages/opencode/src/file/index.tsFile.list()and home scanpackages/opencode/test/file/symlink.test.tspackages/opencode/test/util/filesystem.test.tsVerification