From d8d7ca73f80e992cade867970ceb264431cea33c Mon Sep 17 00:00:00 2001 From: iceweasel-oai Date: Fri, 14 Aug 2026 18:54:01 +0000 Subject: [PATCH] Enable unified exec by default on Windows (#38625) ## What changed - Enable the stable `unified_exec` feature by default on every platform. - Update cross-platform integration test expectations so `exec_command` and `write_stdin` are exposed on Windows instead of `shell_command`. GitOrigin-RevId: e5c864bacbde7eab109e7a0e399b8f7b843b384c --- codex-rs/core/tests/suite/code_mode.rs | 2 +- codex-rs/core/tests/suite/prompt_caching.rs | 6 +----- codex-rs/features/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/codex-rs/core/tests/suite/code_mode.rs b/codex-rs/core/tests/suite/code_mode.rs index d271c0809f..e23331d5b0 100644 --- a/codex-rs/core/tests/suite/code_mode.rs +++ b/codex-rs/core/tests/suite/code_mode.rs @@ -4958,7 +4958,7 @@ text(JSON.stringify({ assert_eq!( parsed, serde_json::json!({ - "hasExecCommand": !cfg!(windows), + "hasExecCommand": true, "hasNamespacedEcho": true, }) ); diff --git a/codex-rs/core/tests/suite/prompt_caching.rs b/codex-rs/core/tests/suite/prompt_caching.rs index da5486d300..b408518c68 100644 --- a/codex-rs/core/tests/suite/prompt_caching.rs +++ b/codex-rs/core/tests/suite/prompt_caching.rs @@ -182,11 +182,7 @@ async fn prompt_tools_are_consistent_across_requests() -> anyhow::Result<()> { .await?; wait_for_event(&codex, |ev| matches!(ev, EventMsg::TurnComplete(_))).await; - let mut expected_tools_names = if cfg!(windows) { - vec!["shell_command"] - } else { - vec!["exec_command", "write_stdin"] - }; + let mut expected_tools_names = vec!["exec_command", "write_stdin"]; expected_tools_names.extend([ "update_plan", "request_user_input", diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs index 22f1d8755b..aba3f29501 100644 --- a/codex-rs/features/src/lib.rs +++ b/codex-rs/features/src/lib.rs @@ -826,7 +826,7 @@ pub const FEATURES: &[FeatureSpec] = &[ id: Feature::UnifiedExec, key: "unified_exec", stage: Stage::Stable, - default_enabled: !cfg!(windows), + default_enabled: true, }, FeatureSpec { id: Feature::ShellZshFork,