From af71774d2645ec900cccf2a40d186a56c7a42f71 Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Tue, 21 Jul 2026 16:52:50 +0000 Subject: [PATCH] Gate the TUI suspend restore helper on Unix (#34578) Compile `tui::restore` only on Unix, matching its use by the Unix job-control suspension path. GitOrigin-RevId: d0ce03def8905e94376ec7f5acf8d083d5dde05b --- codex-rs/tui/src/tui.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/tui/src/tui.rs b/codex-rs/tui/src/tui.rs index 834db5c097..4a96a8cc4f 100644 --- a/codex-rs/tui/src/tui.rs +++ b/codex-rs/tui/src/tui.rs @@ -294,6 +294,7 @@ fn restore_common( /// Restore the terminal to its original state. /// Inverse of `set_modes`. +#[cfg(unix)] pub fn restore() -> Result<()> { restore_common(RawModeRestore::Disable, KeyboardRestore::PopStack) }