Skip to content

Copilot Agent run_in_terminal fails with ENOPRO: No file system provider found in GitHub Codespaces #301804

@petersonjdNIH

Description

@petersonjdNIH

Fair warning, I had GitHub Copilot running Claude Sonnet 4.6 work through the most annoying GitHub Codespaces issue I've ever seen, and I think it's a bug with the web version of VS Code. A lot of this work was assisted by GitHub Copilot running Claude Sonnet 4.6, and I'll take any blame for this work not being sufficient.

I just don't know how to work around this issue. It seems to be totally stuck, so I used my limited ability to generate an easy to reproduce repo of the problem.

Summary

When GitHub Copilot Agent mode invokes its run_in_terminal tool inside a GitHub Codespace (VS Code Web), the call consistently fails with:

ENOPRO: No file system provider found for resource 'file:///workspaces/<repo-name>'

This crashes the Copilot Chat session — subsequent file system tool calls also fail, making the agent unresponsive until the browser tab is refreshed, at which point the cycle repeats.

The VS Code terminal works fine when the user types commands directly. Only Copilot Agent's programmatic run_in_terminal tool is affected.

Minimal reproducer

https://github.com/petersonjdNIH/vscode-enopro-repro

Open this repo in a Codespace in iOS or macOS Safari, open aCopilot Chat in Agent mode, and ask it to run any terminal command (e.g. `echo hello`) more than once.

Environment

Field Value
Platform GitHub Codespaces (VS Code Web, browser)
Devcontainer base image mcr.microsoft.com/devcontainers/base:ubuntu-24.04
Reproducible across reloads ✅ Yes — window reload does not fix it
Reproducible across container rebuilds ✅ Yes — full rebuild does not fix it

Steps to reproduce

  1. Open https://github.com/petersonjdNIH/vscode-enopro-repro in a Codespace on iOS or macOS Safari.
  2. Wait for the container to fully start.
  3. Open GitHub Copilot Chat → switch to Agent mode.
  4. Send this prompt a few times: _"Run echo hello in the terminal".
  5. Observe the tool call fail with the ENOPRO error.

Expected behaviour

Copilot Agent executes the command, receives the returned output, and responds to it.

Actual behaviour

ERROR while calling tool: ENOPRO: No file system provider found for resource 'file:///workspaces/vscode-enopro-repro'
Please check your input and try again.

The Codespace VFS provider appears to not be registered (or has been de-registered) for the workspace root by the time the Copilot tool makes its call.

Additional observations

Workaround

In Safari? None. Users must type all terminal commands manually; Copilot Agent cannot automate terminal operations in Codespaces. Or switch to the thick client on macOS.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugchat-terminalThe run in terminal tool in chatwebIssues related to running VSCode in the web

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions