Skip to content

Sandboxes on WSL don't allow you to run VScode remote #4546

Description

@jsturtevant

Describe the bug

When I try to run ! code . with the /sandbox enable I get:

Shell code . (sandboxed)  2 lines
/mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/bin/code: 42: wslpath: not found
/mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/bin/code: 62: /mnt/c/Users/user/AppData/Local/Programs/Microsoft VS Code/Code.exe: not found

I then added that path to the sandbox configuration via /sandbox config and it still fails.

If I run /sandbox disable it works.

Affected version

GitHub Copilot CLI 1.0.81-6

Steps to reproduce the behavior

/sandbox enable
! code .

Expected behavior

I should be able to run VScode after configuring additional filesystem code

Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:permissionsTool approval, security boundaries, sandbox mode, and directory restrictions

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions