When the Copilot SDK requests a sandbox bypass, VS Code currently presents its standard tool-confirmation options. The existing Allow in this Session choice remembers tool approval; it does not disable sandboxing for the session. As a result, users must confirm each command that legitimately cannot run inside the sandbox.
The Copilot App offers a clearer set of choices:
- Cancel
- Run once outside sandbox
- Disable sandbox and run


VS Code should offer the equivalent session-scoped choice when all of the following are true:
- The Copilot Runtime marks the request as a sandbox bypass.
- Sandboxing is enabled for the current session.
- Enterprise policy allows sandbox bypass.
Suggested wording: Disable sandbox for this session and run.
Selecting it should:
- Approve the current command outside the sandbox.
- Disable sandboxing only for the current session.
- Keep the user's saved sandbox setting unchanged.
- Make the session's unsandboxed state visible in the permissions UI.
- Avoid offering the choice when managed policy sets
sandbox.allowBypass to false.
This should be a sandbox-specific option rather than reusing Allow in this Session. The latter changes tool approval for future calls; it does not communicate or implement the broader security posture change of disabling containment for the rest of the session.
🤖 Posted by GitHub Copilot on Harald's behalf.
When the Copilot SDK requests a sandbox bypass, VS Code currently presents its standard tool-confirmation options. The existing Allow in this Session choice remembers tool approval; it does not disable sandboxing for the session. As a result, users must confirm each command that legitimately cannot run inside the sandbox.
The Copilot App offers a clearer set of choices:
VS Code should offer the equivalent session-scoped choice when all of the following are true:
Suggested wording: Disable sandbox for this session and run.
Selecting it should:
sandbox.allowBypasstofalse.This should be a sandbox-specific option rather than reusing Allow in this Session. The latter changes tool approval for future calls; it does not communicate or implement the broader security posture change of disabling containment for the rest of the session.
🤖 Posted by GitHub Copilot on Harald's behalf.