-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Description
Description
Symlinked directories are not visible in the project picker when running opencode serve.
Steps to Reproduce
- Create a symlink to a directory:
ln -s /mnt/data/Projects ~/Projects - Run
opencode serve - Open web UI and use project picker
- Navigate to
~/Projects
Expected: Symlinked subdirectories appear as directories
Actual: They are hidden or shown as files
Root Cause
fs.readdir() with withFileTypes: true returns entry.isDirectory() = false for symlinks, even when pointing to directories.
Affected code in packages/opencode/src/file/index.ts:
File.list()- directory listing API- Home directory scanning
Environment
- OS: Linux
- OpenCode: latest
Plugins
No response
OpenCode version
1.1.34
Steps to reproduce
- Create a symlink to a projects directory:
ln -s /mnt/data/Projects ~/Projects - Start the server:
opencode serve
3. Open web UI in browser - Open project picker dialog
- Navigate to ~/Projects
Screenshot and/or share link
No response
Operating System
CachyOS Linux (arch btw)
Terminal
Ghostty
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktop