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
{{ message }}
Repository navigation
[Bug]: Windows — terminal file links on a mapped network drive fail silently (fs:stat "Access denied: path resolves outside allowed directories") #23018
Summary: clicking a terminal file link that lives on a mapped network drive (X: = SMB share mapped with net use) shows the link popover, but both "Open file" and "Open with default app" do nothing. No toast, nothing in the console. Text files sometimes open; images/PDFs never do.
Calling the same steps the click handler runs, from DevTools, shows where it stops:
So the main-process open path works fine for the drive-letter spelling; only the allow-list check in fs:stat rejects it, and the renderer's terminal-link handler swallows the error (try { authorize; stat } catch { return }), which is why the click is a silent no-op.
Likely cause:authorizeExternalPath records path.resolve(p) and fs.realpathSync(p) (the JS implementation, which does not resolve drive mappings, so both are X:\…), while the allow-list check canonicalizes with the native fs.promises.realpath, which on Windows resolves a mapped drive to its UNC form \nas\share\…. The canonical path is then not in the allow-list. A local symlink pointing at the share fails the same way (its realpath is also UNC).
Related: #11183 (mapped drives canonicalized to UNC), #21172 (same "Access denied" from NFD/NFC mismatch on macOS — same class of canonicalization mismatch), #18268.
Steps to reproduce
net use X: \server\share on Windows.
In an Orca terminal, print X:\share\some\image.png.
Click the link → choose either popover action. Nothing happens.
DevTools console: await window.api.fs.authorizeExternalPath({targetPath:'X:/share/some/image.png'}); await window.api.fs.stat({filePath:'X:/share/some/image.png'}) → Access denied. Same with //server/share/some/image.png → ok.
Expected
Either accept the drive-letter form (add the native-realpath canonical form to the allow-list when authorizing), or surface the error instead of silently ignoring it.
Workaround
Print NAS paths as forward-slash UNC: //server/share/…. That spelling is linkified and opens. (\server\share\… with backslashes is not linkified at all.)
This should be fixed in v1.4.221 and later, by #24489.
The failure came from the old permission check. When you clicked the link, Orca granted the X:\… path. Then fs:stat resolved the mapped drive to its \\server\share\… form and didn't find that among the granted paths, so the stat was refused and the click did nothing.
#24489 removed that grant system. A terminal link you click is now checked as a file you opened yourself: it's read where it is, by the path you clicked, with no lookup against a list of granted paths. A drive-letter path on a mapped network drive should therefore open the same way a local file does. Images and PDFs included.
We haven't tested this on a real mapped drive yet. Could you try it on v1.4.221 or later? If it still fails, please leave a comment with the Orca version and anything shown in DevTools, and we'll dig back in.
Activity
AmethystLiang commentedon Sep 27, 2026
thanks for reporting. looking into it
Add orca-23018-before-1-popover.png for stablyai/orca#23018
Add orca-23018-before-2-result.png for stablyai/orca#23018
Add orca-23018-after-2-result.png for stablyai/orca#23018
brennanb2025 commentedon Oct 12, 2026
This should be fixed in v1.4.221 and later, by #24489.
The failure came from the old permission check. When you clicked the link, Orca granted the
X:\…path. Thenfs:statresolved the mapped drive to its\\server\share\…form and didn't find that among the granted paths, so the stat was refused and the click did nothing.#24489 removed that grant system. A terminal link you click is now checked as a file you opened yourself: it's read where it is, by the path you clicked, with no lookup against a list of granted paths. A drive-letter path on a mapped network drive should therefore open the same way a local file does. Images and PDFs included.
We haven't tested this on a real mapped drive yet. Could you try it on v1.4.221 or later? If it still fails, please leave a comment with the Orca version and anything shown in DevTools, and we'll dig back in.
Sota311 commentedon Oct 12, 2026
Confirmed fixed on v1.4.224 — a PDF on a mapped network drive (
X:\…) now opens from a terminal link. Thanks for the quick fix!