From e211c2b57fde0572395e58990a753ea6770bda60 Mon Sep 17 00:00:00 2001 From: Abhinav Vedmala Date: Sun, 7 Jun 2026 20:39:42 -0700 Subject: [PATCH] Revert "Materialize Windows sandbox test workspace" This reverts commit bd3b85eb3d5dcbc8c555333a83402cb71979feed. --- codex-rs/core/tests/suite/windows_sandbox.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/codex-rs/core/tests/suite/windows_sandbox.rs b/codex-rs/core/tests/suite/windows_sandbox.rs index d3eabe12b7..6614a63bb7 100644 --- a/codex-rs/core/tests/suite/windows_sandbox.rs +++ b/codex-rs/core/tests/suite/windows_sandbox.rs @@ -334,9 +334,7 @@ async fn windows_elevated_enforces_managed_deny_read_for_shell_subprocess() -> a let config_home = TempDir::new()?; std::fs::write( config_home.path().join(CONFIG_TOML_FILE), - r#"sandbox_mode = "workspace-write" - -[windows] + r#"[windows] sandbox = "elevated" "#, )?; @@ -357,12 +355,11 @@ allowed_sandbox_implementations = ["elevated"] "# ); - let mut config = load_default_config_for_test_with_cloud_config_bundle( + let config = load_default_config_for_test_with_cloud_config_bundle( &config_home, CloudConfigBundleFixture::loader_with_enterprise_requirement(requirements), ) .await; - config.permissions.set_workspace_roots(vec![cwd.clone()]); assert_eq!( config.permissions.windows_sandbox_mode, Some(codex_config::types::WindowsSandboxModeToml::Elevated)