Skip to content

[Bug]: Remote host filesystem picker cannot navigate to other drives on Windows hosts (locked to C:\) #7438

Closed

Description

@MichaelHoughtonDeBox

Environment

  • Client: macOS (Orca 1.4.110), paired to a remote server via Settings → Remote Orca Servers
  • Remote host: Windows 10/11 x64, advertising via "Advertise this app as a server" (Tailscale address, ws://100.x.x.x:6768)
  • Host disks: OS on C:\, large storage drive on M:\

Steps to reproduce

  1. Pair a macOS client to a Windows remote Orca server.
  2. On the client, Add Project on the remote host → the "Browse host filesystem" dialog opens (rooted at the host home dir, e.g. C:\Users\Administrator).
  3. Try to reach the M:\ drive:
    • Click / in the breadcrumb, or
    • Type M:\ (or M:\dev) into the search box, with and without Enter.

Actual behaviour

  • The breadcrumb root / maps to C:\ — drives are never listed.
  • The search box placeholder says "Type to filter or enter a path…", but typing M:\ only filters the current directory's entries — it shows No matches for 'M:\' and never navigates. Enter does not navigate either.
  • Net result: on a multi-drive Windows host, projects can only be created on C:\ through the UI. A second storage drive is arguably the main reason to use a Windows tower as a remote server for agent fleets, so the primary use case is blocked in the picker.

Expected behaviour

  • On Windows hosts, the root (/) view lists available drives (C:\, M:\, …), and/or
  • An absolute typed path (M:\dev\projects) navigates the picker there, as the placeholder implies.

Workaround

The runtime itself handles cross-drive paths fine — from the client CLI this works:

orca repo add --path "M:\dev\debox\my-repo" --environment <env-name>

(the path must already be a git repo on the host). Only the picker UI is limited, so this looks like a client-side dialog issue rather than a runtime/RPC limitation.

Activity

  1. added theissue type on Jul 12, 2026
  2. added
    bug
    on Jul 16, 2026
  3. OrcaWin commented on Jul 18, 2026

    @OrcaWin
    Collaborator

    Reproduced at the source level (Windows host). The "Browse host filesystem" picker (RemoteFileBrowser) is locked to a single drive because its renderer-side path parser is POSIX-only. The Windows backends are already drive-capable — the renderer just never sends a drive-qualified path.

    Where: CreateProjectLocationField.tsx ("Browse host filesystem") renders RemoteFileBrowser.tsx, whose search/path box is parsed by remote-file-browser-helpers.ts. Listings go through ssh:browseDir (src/main/ipc/ssh-browse.ts) or files.browseServerDir → OrcaRuntime.browseServerDir (src/main/runtime/orca-runtime.ts).

    Defect (a) — no drive enumeration. parsePathInput (remote-file-browser-helpers.ts:107) can only produce bases root (/), home (~), cwd — there is no drive base and no listing of C:\ M:\ …. On Windows the / breadcrumb (RemoteFileBrowser.tsx:643) resolves to the current drive root (resolveServerBrowsePath isAbsolute branch, orca-runtime.ts:1941), and navigateUp dead-ends at / (RemoteFileBrowser.tsx:209). No path exists to reach another drive.

    Defect (b) — typed absolute drive path is filtered, not navigated. isPathMode (remote-file-browser-helpers.ts:92) only triggers on /, ~, ., .., so a native M:\dev stays in filter mode (handleInputChange, RemoteFileBrowser.tsx:383) and merely narrows the current directory. A forward-slash M:/dev triggers path mode but parsePathInput (helpers.ts:126-137) only treats a leading / or ~/ as absolute — so M: is resolved as a subfolder of the current directory, never the M:\ drive root.

    The backends already handle drives — resolveServerBrowsePath resolves M:\ via isAbsolute, and the SSH branch normalizes drive paths (normalizeWindowsDrivePath, ssh-browse.ts:321). The gap is entirely in the renderer parser.

    Contrast — local works: local Add Project uses the native OS directory dialog (src/main/ipc/app.ts:70-77), which exposes This PC / all drives. The capability exists locally and is missing only on the remote-host path.

    Proof:

    npx vitest run --config config/vitest.config.ts src/renderer/src/components/sidebar/remote-file-browser-windows-drive.repro.test.ts

    Repro test (3 passing) pins the buggy behavior — isPathMode('M:\\') === false, parsePathInput('M:/dev').base === 'cwd', and the parser only emits root/home/cwd bases.

    Fix direction: teach isPathMode/parsePathInput to recognize ^[A-Za-z]:[\\/]? as a new absolute drive base (backslashes → /) and pass it straight to the (drive-capable) backends; and give the Windows host a drive-enumeration root so navigating up from a drive root lists available drives instead of dead-ending at /.

    Full trace in docs/bug-reproductions/7438-remote-fs-picker-drives.md.

    🔁 Reproduced via automated Windows bug-reproduction pass.

  4. added
    has_repro
    on Jul 18, 2026
  5. added
    orca-remote-server
    on Jul 22, 2026
  6. added a commit that references this issue on Oct 15, 2026
    30a4120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bughas_reproorca-remote-serveros:Windows

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions