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");