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
- Open https://github.com/petersonjdNIH/vscode-enopro-repro in a Codespace on iOS or macOS Safari.
- Wait for the container to fully start.
- Open GitHub Copilot Chat → switch to Agent mode.
- Send this prompt a few times: _"Run
echo hello in the terminal".
- 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.
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_terminaltool inside a GitHub Codespace (VS Code Web), the call consistently fails with: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_terminaltool 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
mcr.microsoft.com/devcontainers/base:ubuntu-24.04Steps to reproduce
echo helloin the terminal".Expected behaviour
Copilot Agent executes the command, receives the returned output, and responds to it.
Actual behaviour
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.