Wire Windows sandbox selection into managed proxy routing (#45757)

## What changed

- Track the Windows sandbox implementation separately from its legacy setup level.
- Select dedicated proxy listeners for `WindowsMxc` on Windows across sessions, app-server command execution, and the sandbox CLI.
- Rebuild the session proxy when routing changes, retaining its network policy decider.
- Add a sandbox CLI execution path through the MXC sandbox transform when `WindowsMxc` is selected.

## Testing

Extend configuration assertions for the selected sandbox type and the session refresh test to verify dedicated routing and policy decider retention on Windows.

GitOrigin-RevId: 2a22192636c542022ec81a378a16c1bb6867e145
This commit is contained in:
iceweasel-oai authored and copyberry committed 2026-09-15 18:41:13 +00:00
1 parent af1fc2dbff
commit a5c15ab5c0
14 files changed
+185 -18

No files matched your search

@@ -1,5 +1,6 @@
use super::*;
use codex_core::exec_env::inject_apply_patch_env;
use codex_core::windows_sandbox::managed_proxy_routing_for_windows_sandbox;
use codex_protocol::shell_environment::is_non_inheritable_env_var;
#[derive(Clone)]
@@ -262,6 +263,9 @@ impl CommandExecRequestProcessor {
Some(spec) => match spec
.start_proxy(
&network_proxy_permission_profile,
managed_proxy_routing_for_windows_sandbox(
self.config.permissions.windows_sandbox_type,
),
/*policy_decider*/ None,
/*blocked_request_observer*/ None,
managed_network_requirements_enabled,