From 17f37f56be7e23602c758c4b6039ca32755d3e4d Mon Sep 17 00:00:00 2001 From: zm-oai Date: Fri, 25 Sep 2026 16:47:31 +0000 Subject: [PATCH] Suppress console windows when spawning the code-mode host on Windows (#48138) Set `CREATE_NO_WINDOW` when launching the code-mode host on Windows so the child process does not create a console window. GitOrigin-RevId: ce0d04d7f516d137bcaf5206140aaeaa23334022 --- codex-rs/code-mode/src/remote_session/connection.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/code-mode/src/remote_session/connection.rs b/codex-rs/code-mode/src/remote_session/connection.rs index 48345d506c..ed5a22074b 100644 --- a/codex-rs/code-mode/src/remote_session/connection.rs +++ b/codex-rs/code-mode/src/remote_session/connection.rs @@ -158,6 +158,8 @@ impl Connection { let mut command = Command::new(host_program); #[cfg(unix)] command.process_group(0); + #[cfg(windows)] + command.creation_flags(/*flags*/ 0x0800_0000); // CREATE_NO_WINDOW command .stdin(Stdio::piped()) .stdout(Stdio::piped())