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
Short summary:
When adding a project on an SSH host (POSIX), the remote directory picker lists a symlink that points to a directory as a plain file, so it cannot be opened or selected. Many servers keep workspaces behind symlinks (e.g. /home/user/wt -> /data/wt), which makes those directories unreachable from the picker.
Root cause (current main):
Direct SSH browse: src/main/ssh/ssh-remote-directory-browse.ts runs command ls -1Ap. -p only appends / to real directories, not to symlinks to directories, so the parser marks them isDirectory: false.
Managed server browse: src/main/runtime/runtime-server-environment-commands.ts uses Dirent.isDirectory(), which does not follow symlinks.
Steps to reproduce:
On a Linux SSH host: mkdir -p ~/real/project && ln -s ~/real ~/linked
In Orca, Add project -> choose the SSH host -> browse to ~.
linked appears as a file and cannot be entered/selected.
Expected behavior:
A symlink whose target is a directory is shown and navigable as a folder. Dangling symlinks stay non-selectable and do not break the listing.
Proposed approach:
Managed server path: for entries where isSymbolicLink() is true, stat() the entry and mark it a directory only if the target is a directory; treat stat errors as files.
Direct SSH path: make the POSIX list command mark symlinks-to-directories with a trailing slash, keeping the output format unchanged.
Add unit tests for symlink to dir, symlink to file, and dangling symlink.
Environment: client macOS, remote Linux over SSH.
I have a working patch for this in a fork and am happy to send a PR once the approach is confirmed.
Fix is in #29658: on SSH and managed hosts, a symlink to a folder is now listed and opens as a folder, and broken links and loops stay files without breaking the listing. Verified live on a Linux host. This issue will close when that PR merges.
Activity
nwparker commentedon Oct 16, 2026
Fix is in #29658: on SSH and managed hosts, a symlink to a folder is now listed and opens as a folder, and broken links and loops stay files without breaking the listing. Verified live on a Linux host. This issue will close when that PR merges.