Skip to content

The open source coding agent.

TypeScript

Hide server CLI on windows (#13936)

Brendan Alland338bd528c01
diff --git a/packages/desktop/src-tauri/src/cli.rs b/packages/desktop/src-tauri/src/cli.rs
index 0f5cd2ff1cf..2b60120bb3e 100644
--- a/packages/desktop/src-tauri/src/cli.rs
+++ b/packages/desktop/src-tauri/src/cli.rs
@@ -317,9 +317,12 @@ pub fn spawn_command(
cmd
};
- cmd.stdin(Stdio::null())
- .stdout(Stdio::piped())
- .stderr(Stdio::piped());
+ cmd.stdin(Stdio::null());
+ cmd.stdout(Stdio::piped());
+ cmd.stderr(Stdio::piped());
+
+ #[cfg(windows)]
+ cmd.creation_flags(0x0800_0000);
let mut wrap = CommandWrap::from(cmd);