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:
iceweasel-oai
2026-10-08 17:48:32 +00:00
committed by copyberry
parent 5fe2152b60
commit f90a578f76
12 changed files with 146 additions and 12 deletions
+3 -1
View File
@@ -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 {