From 68b1e1a93dd5cfc6c1beab3ed8ac789a8d8d8338 Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Fri, 16 Jan 2026 18:28:10 -0800 Subject: [PATCH] fix: silence unused detach flag on non-unix --- codex-rs/utils/pty/src/pipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/utils/pty/src/pipe.rs b/codex-rs/utils/pty/src/pipe.rs index 037b3e5c66..7e5c47b6f6 100644 --- a/codex-rs/utils/pty/src/pipe.rs +++ b/codex-rs/utils/pty/src/pipe.rs @@ -103,7 +103,7 @@ async fn spawn_process_with_stdin_mode( env: &HashMap, arg0: &Option, stdin_mode: PipeStdinMode, - detach_from_tty: bool, + #[cfg_attr(not(unix), allow(unused_variables))] detach_from_tty: bool, ) -> Result { if program.is_empty() { anyhow::bail!("missing program for pipe spawn");