Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Enable unified exec by default on Windows (#38625)

iceweasel-oaid8d7ca73f80e
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,