Skip to content

Windows Companion try to resolve paths on the local machine for remote agent Workspace #969

Description

@danilovmy

Summary

When Windows Companion is connected to a remote agent/gateway, the Advanced -> Agents -> main -> Workspace view does not show the expected files because it appears to resolve/browse paths against the local Windows machine instead of the remote agent workspace.

Image

Why this matters

The whole point of the remote Workspace view is to inspect the remote agent's workspace/files. If the UI tries to interpret those paths locally, the file rail/browser becomes misleading or empty for legitimate remote paths.

Repro

  1. Connect Windows Companion to a remote agent/gateway.
  2. Open Advanced -> Agents -> main -> Workspace.
  3. Expect to browse the remote agent workspace/files.
  4. Observe that the view does not show the expected files and behaves as if the paths are being resolved on the local Windows machine.

Expected

  • Workspace browsing should be scoped to the connected remote agent/gateway.
  • File listing and preview should use the remote workspace APIs and remote path semantics.
  • Remote absolute paths should never be treated as local Windows filesystem paths just because the UI is running on Windows.

Actual

  • The Workspace tab does not show the expected remote files.
  • Behavior suggests local path resolution / local-machine assumptions rather than remote workspace-backed browsing.

Notes / suspected shape

This looks related to the existing Workspace/file-rail work:

  • #876 Add Workspace session file rail
  • #871 Follow up Workspace file rail parity gaps
  • #956 Fix workspace file previews

Especially #956 looks adjacent because it explicitly mentions routing the Workspace page through:

  • agents.workspace.list
  • agents.workspace.get

with fallback behavior for older gateways.

So this may be:

  1. a regression in the remote-workspace path,
  2. an incomplete remote-agent case not covered by the earlier fix,
  3. or a fallback path still using local/path-based assumptions when remote agents.workspace.* should be authoritative.

Suggested fix

  • Ensure the Workspace page uses remote agents.workspace.list/get results as canonical when connected to a remote agent/gateway.
  • Do not reinterpret remote paths as local Windows paths in the UI layer.
  • Audit fallback order so older-gateway fallbacks still preserve remote scope instead of accidentally dropping into local-machine browsing semantics.
  • Add an explicit regression test for a remote/non-Windows-style workspace root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.no-staleExempts this issue from stale automation.

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    Status
    UX

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions