codex: fix CI failure on PR #13193

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-01 17:19:08 -07:00
parent 88f4a24dfa
commit 6cdc5d450b

View File

@@ -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)
}