From 539ca457d54ba6c34e6c2b33a718bb56aeebbf35 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Fri, 22 May 2026 20:13:52 -0400 Subject: [PATCH] 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. --- desktop/src-tauri/src/commands/agent_discovery.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/src-tauri/src/commands/agent_discovery.rs b/desktop/src-tauri/src/commands/agent_discovery.rs index 75f2e8a6b..10d615d60 100644 --- a/desktop/src-tauri/src/commands/agent_discovery.rs +++ b/desktop/src-tauri/src/commands/agent_discovery.rs @@ -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()