Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix bash detection failure in VS Code Codex extension on Windows under certain conditions (#3421)

Axojhf802d2440b4ed
diff --git a/codex-rs/core/src/shell.rs b/codex-rs/core/src/shell.rs
index e164e5b48d..197c00bad2 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()