Enable MXC TTY launches and managed networking in the exec server (#45524)

## What changed

- Report `windows_mxc` from native MXC availability on Windows.
- Allow MXC TTY launches and managed networking, using dedicated proxy listeners without requiring a shared-ingress restricting SID.
- Reject MXC custom `argv0` and private-desktop launches, and continue failing closed when native MXC is unavailable.

## Testing

Extend the Windows remote sandbox process-write test to cover MXC with both pipes and ConPTY. Retain coverage for rejecting MXC requests when native support is unavailable.

GitOrigin-RevId: 80c5f319b9066d06b26f0a7eb7119a109e6ebef7
This commit is contained in:
iceweasel-oai
2026-09-14 21:45:09 +00:00
committed by copyberry
parent e84a594636
commit 60e35765c3
7 changed files with 72 additions and 53 deletions
@@ -217,6 +217,10 @@ impl EnvironmentInfo {
/// Returns information about the current local exec-server process.
pub fn local() -> Self {
#[cfg(windows)]
let windows_mxc = codex_mxc_sandbox::is_available();
#[cfg(not(windows))]
let windows_mxc = false;
let cwd = std::env::current_dir().ok();
let temporary_directories = Self::local_temporary_directories_with_cwd(cwd.as_deref());
let normalize_temp_path = |path: std::ffi::OsString| {
@@ -246,7 +250,7 @@ impl EnvironmentInfo {
http_header_env_vars: true,
sandboxed_file_streaming: true,
shell_snapshot_v2: cfg!(unix),
windows_mxc: false,
windows_mxc,
},
}
}