Skip to content

Commit b86c595

Browse files
committed
fix(buzz-acp): CREATE_NO_WINDOW for agent adapter spawn on Windows
Desktop launches buzz-acp windowless; without the same flag the adapter child (cmd.exe/node, buzz-agent, …) allocates its own console per agent. Refs: block#2292, PR block#2247 review Signed-off-by: Thomas Zarebczan <[email protected]>
1 parent 58ef77e commit b86c595

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎crates/buzz-acp/src/acp.rs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,15 @@ impl AcpClient {
466466
#[cfg(unix)]
467467
cmd.process_group(0);
468468

469+
// Desktop launches buzz-acp with CREATE_NO_WINDOW. Without the same flag
470+
// here, each adapter (cmd.exe → node, buzz-agent, …) allocates its own
471+
// console — one window per agent (#2292).
472+
#[cfg(windows)]
473+
{
474+
const CREATE_NO_WINDOW: u32 = 0x0800_0000;
475+
cmd.creation_flags(CREATE_NO_WINDOW);
476+
}
477+
469478
let mut child = cmd.spawn()?;
470479

471480
let stdin = child

0 commit comments

Comments
 (0)