fix(desktop): close stdin for install subprocesses to prevent interactive hangs

Install commands like the Codex CLI script prompt "Start Codex now?
[y/N]" which blocks forever when the subprocess inherits stdin from
the Tauri process. Redirect stdin from /dev/null so any interactive
prompt gets an immediate EOF and defaults to its non-interactive
behavior.
This commit is contained in:
Will Pfleger
2026-05-22 20:13:52 -04:00
parent 77ef419fdb
commit 539ca457d5
@@ -129,6 +129,7 @@ fn run_install_command(step: &str, command: &str) -> InstallStepResult {
}
let mut child = match cmd
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.spawn()