mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Record Windows MXC availability (#42094)
## What changed - Probe whether the native Windows MXC process security environment is usable when selecting a sandbox. - Emit `codex.windows_mxc.available` at most once per process, labeled with the probe result. - Add the MXC workspace dependencies for Cargo and Bazel, and pin `tracelogging` to a version compatible with the GNU Windows toolchain. GitOrigin-RevId: d7cfeed6f0333feda5764e1ee44fe5bbd50f9a58
This commit is contained in:
1 parent
f4e6cb7876
commit
ade0ccacf9
9 files changed
+231
No files matched your search
@@ -301,6 +301,9 @@ impl SandboxManager {
|
||||
windows_sandbox_level: WindowsSandboxLevel,
|
||||
has_managed_network_requirements: bool,
|
||||
) -> SandboxType {
|
||||
#[cfg(windows)]
|
||||
crate::windows_mxc::record_availability_once();
|
||||
|
||||
if self.should_sandbox(permission_profile, pref, has_managed_network_requirements) {
|
||||
get_platform_sandbox(windows_sandbox_level != WindowsSandboxLevel::Disabled)
|
||||
.unwrap_or(SandboxType::None)
|
||||
|
||||
Reference in new issue
Block a user