mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
Enforce managed MXC requirements on Windows (#52193)
## What changed Add `windows.require_mxc` to managed requirements. When set to `true` on Windows, reject configurations whose effective local sandbox backend is not MXC without changing the selected backend. Validate after cloud configuration loads and outside startup recovery fallbacks. Apply the check to app-server startup and configuration loads, in-process bootstrap, session creation, sandbox debugging, and runtime configuration refreshes. ## Testing Extend configuration tests to cover required and optional MXC selection, separately loaded policy requirements, and runtime refresh validation. Expand app-server startup tests to cover local and cloud MXC requirements, cloud preference selection, and failures without default-config recovery. GitOrigin-RevId: 16456611bfd9df77e7f959b52515f1885b59ac75
This commit is contained in:
@@ -754,7 +754,9 @@ async fn build_debug_sandbox_config_with_loader_overrides(
|
||||
.codex_home(codex_home.clone())
|
||||
.fallback_cwd(Some(codex_home));
|
||||
}
|
||||
builder.build().await
|
||||
let config = builder.build().await?;
|
||||
config.validate_windows_mxc_requirement()?;
|
||||
Ok(config)
|
||||
}
|
||||
|
||||
fn config_uses_permission_profiles(config: &Config) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user