From d9787a9e53b7ec1aac7b588b7b22c40b272dc95d Mon Sep 17 00:00:00 2001 From: Axojhf <20625305+axojhf@users.noreply.github.com> Date: Thu, 11 Sep 2025 00:16:13 +0800 Subject: [PATCH] Fix bash detection failure in VS Code Codex extension on Windows under certain conditions --- codex-rs/core/src/shell.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/core/src/shell.rs b/codex-rs/core/src/shell.rs index e164e5b48dd1..197c00bad24a 100644 --- a/codex-rs/core/src/shell.rs +++ b/codex-rs/core/src/shell.rs @@ -98,6 +98,7 @@ pub async fn default_user_shell() -> Shell { .unwrap_or(false); let bash_exe = if Command::new("bash.exe") .arg("--version") + .stdin(std::process::Stdio::null()) .output() .await .ok()