From d123e35e640abae7a480f345d8d692c1682504bc 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 eecf9c64ee..a900bb2332 100644 --- a/codex-rs/code-mode/src/remote_session/connection.rs +++ b/codex-rs/code-mode/src/remote_session/connection.rs @@ -157,6 +157,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())