Skip to content

[Bug]: Under WSL, pasting a Windows folder path is rejected as being on a different machine #30010

Closed

Description

@matdac6

Summary

When the backend runs in WSL, I can't paste or reference a path to a folder on the Windows side (e.g. C:\Users\me\Documents\project or /mnt/c/Users/me/Documents/project) in the composer. The UI shows a message saying that links and paths can only be referenced on the same machine. That is wrong here: Windows and WSL are the same machine, and the agent can read those files (via /mnt/c/...).

Steps to reproduce

  1. Run the desktop app on Windows with a WSL backend and open a thread in a WSL workspace.
  2. Copy the path of a folder that lives on the Windows filesystem.
  3. Paste it into the composer / try to reference it.

Expected

The path is accepted. A Windows path should be translated to its WSL form (wslpath), and a /mnt/<drive>/... path should be treated as local. Both are on the same machine as the backend.

Actual

The path is rejected with a message along the lines of "links and paths can only be referenced on the same machine" (paraphrased from memory). The agent can still read the folder when asked directly, so this is a client-side restriction that misfires.

Likely cause

The "same machine" check seems to compare the environment (WSL vs. Windows host) rather than the real host, so WSL and Windows are treated as different machines.

Related

Environment

  • Windows host + WSL2 backend (Linux 6.6.87.2-microsoft-standard-WSL2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions