From 6cdc5d450b3d8963fb0f463027212b57fbeed09b Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sun, 1 Mar 2026 17:19:08 -0700 Subject: [PATCH] codex: fix CI failure on PR #13193 Co-authored-by: Codex --- codex-rs/tui/src/app.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index efbe26957c..f211d16ef2 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -3098,15 +3098,13 @@ impl App { )); } }, - #[cfg(not(target_os = "linux"))] AppEvent::TranscriptionComplete { id, text } => { self.chat_widget.replace_transcription(&id, &text); } - #[cfg(not(target_os = "linux"))] - AppEvent::TranscriptionFailed { id, error: _ } => { + AppEvent::TranscriptionFailed { id, error } => { + tracing::error!("voice transcription failed: {error}"); self.chat_widget.remove_transcription_placeholder(&id); } - #[cfg(not(target_os = "linux"))] AppEvent::UpdateRecordingMeter { id, text } => { // Update in place to preserve the element id for subsequent frames. let updated = self.chat_widget.update_transcription_in_place(&id, &text); @@ -3168,16 +3166,6 @@ impl App { } } } - AppEvent::UpdateRecordingMeter { id, text } => { - self.chat_widget.update_transcription_in_place(&id, &text); - } - AppEvent::TranscriptionComplete { id, text } => { - self.chat_widget.replace_transcription(&id, &text); - } - AppEvent::TranscriptionFailed { id, error } => { - tracing::error!("voice transcription failed: {error}"); - self.chat_widget.remove_transcription_placeholder(&id); - } } Ok(AppRunControl::Continue) }