mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
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
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user