From efa6715884dbbe1b97626085297d18960953cc60 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Fri, 13 Mar 2026 05:14:51 -0700 Subject: [PATCH] tui: cfg-gate realtime settings draft helper Co-authored-by: Codex --- codex-rs/tui/src/chatwidget.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 475961a8d1..03396dd9a6 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -5593,6 +5593,7 @@ impl ChatWidget { SlashCommandInvocation::with_args(SlashCommand::Approvals, args).into_user_message() } + #[cfg(all(not(target_os = "linux"), feature = "voice-input"))] fn settings_device_draft(kind: RealtimeAudioDeviceKind, name: Option<&str>) -> UserMessage { let kind_name = match kind { RealtimeAudioDeviceKind::Microphone => "microphone",