pub struct SandboxConfig {
pub add_current_working_directory: Option<bool>,
pub allow_dev_tool_access: Option<bool>,
pub enabled: bool,
pub gh_auth: Option<bool>,
pub git_auth: Option<bool>,
pub user_policy: Option<SandboxConfigUserPolicy>,
}Expand description
Resolved sandbox configuration.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§add_current_working_directory: Option<bool>Whether to auto-add the current working directory to readwritePaths. Default: true.
allow_dev_tool_access: Option<bool>Whether to auto-grant read access to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and, on Unix, up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Default: true (enabled by default; set to false to opt out).
enabled: boolWhether sandboxing is enabled for the session.
gh_auth: Option<bool>Whether to export GH_TOKEN so the gh CLI authenticates inside the sandbox without the OS keyring the sandbox blocks. Default: false (opt-in).
git_auth: Option<bool>Whether to inject the Copilot GitHub token as an http.<host>.extraheader so authenticated HTTPS git works inside the sandbox without the shell-based credential helper the sandbox blocks. Default: false (opt-in).
user_policy: Option<SandboxConfigUserPolicy>User-managed sandbox policy fragment merged into the auto-discovered base policy.
Trait Implementations§
Source§impl Clone for SandboxConfig
impl Clone for SandboxConfig
Source§fn clone(&self) -> SandboxConfig
fn clone(&self) -> SandboxConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more