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
Windows client: remote file list/stat/read resolves POSIX paths to C:\home\... and fails #21
path "foo.txt" fails with not found: C:\\home\\ubuntu\\foo.txt.
Probable cause (0.8.18 bundle): targetOf() uses node:path (resolve, isAbsolute, relative, sep) for the remote POSIX path. On Windows, path.resolve("/home/ubuntu") becomes C:\\home\\ubuntu, and that string is sent to the remote agent as remotePath.
Suggested direction: use node:path/posix for remote paths (containment check + remotePath), and keep platform node:path only for the local anchor path.
The workspace-files adapter now resolves the local anchor with the client platform path and the remote workspace with POSIX path semantics, so a Windows client sends /home/ubuntu instead of C:\home\ubuntu. The workspace-relative path is converted to / separators before joining the remote root.
Added 9 path tests covering Windows anchors, relative paths, the workspace root, remote absolute paths outside the root, and escape rejection. Verified on a real Windows host with the Windows node:path: the remote path stays POSIX and the local anchor uses backslashes.
Activity
Golden-Pigeon commentedon Nov 9, 2026
Fixed in #25.
The workspace-files adapter now resolves the local anchor with the client platform path and the remote workspace with POSIX path semantics, so a Windows client sends
/home/ubuntuinstead ofC:\home\ubuntu. The workspace-relative path is converted to/separators before joining the remote root.Added 9 path tests covering Windows anchors, relative paths, the workspace root, remote absolute paths outside the root, and escape rejection. Verified on a real Windows host with the Windows
node:path: the remote path stays POSIX and the local anchor uses backslashes.Thanks @Solaris136 for the detailed report.