You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent Host: Improve sandbox startup experience in GitHub Codespaces #349512
Opening the Copilot Agent Host chat in a GitHub Codespace with sandboxing enabled can immediately show a large warning titled Sandboxing might not work as expected. The reported warning says Bubblewrap cannot start sandboxed commands or services because its private network is unavailable, and that unshare --user --net exited with status 1.
The initial message includes extensive Linux namespace, AppArmor, networking, and dependency troubleshooting instructions, with Troubleshooting Guide and Disable Sandboxing actions. This is a long, intimidating first experience, especially when fixing the host requires manual setup and restarting the agent host.
Reproduction scenario
Open VS Code in a GitHub Codespace whose host cannot satisfy the sandbox prerequisites.
Open the Copilot Agent Host chat with sandboxing enabled.
Observe the sandbox capability warning before starting a conversation.
The exact VS Code version and Codespace image were not supplied.
Requested experience
Avoid enabling sandboxing by default in unsupported Codespaces configurations until there is an actionable setup experience. Consider Codespaces-specific default gating rather than assuming every remote host supports sandboxing.
Keep the initial warning concise and specific to the detected failure; move detailed diagnostics into expandable content or the troubleshooting guide.
Offer a guided, consent-based remediation path where the host permits installation or configuration changes, and refresh capability checks after remediation without requiring an agent-host restart.
Respect explicit user choices and managed restrictions. Do not silently fall back to unsandboxed execution, or assume that a Codespace's container replaces sandbox protection.
This issue tracks the Codespaces first-run experience and default-enablement decision, rather than duplicating the general prerequisite-installation work in #337535. Interactive terminal support in #348067 is related enabling work, but does not itself address unsupported host capabilities or the initial warning.
Activity