diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index 47a642ddd3..51c845004d 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -3759,6 +3759,10 @@ impl ChatComposer { self.status_line_enabled = enabled; true } + + pub(crate) fn transcription_placeholder_exists(&self, id: &str) -> bool { + self.textarea.named_element_range(id).is_some() + } } #[cfg(not(target_os = "linux"))] @@ -4036,10 +4040,6 @@ impl ChatComposer { id } - pub(crate) fn transcription_placeholder_exists(&self, id: &str) -> bool { - self.textarea.named_element_range(id).is_some() - } - pub fn remove_transcription_placeholder(&mut self, id: &str) { self.stop_transcription_spinner(id); let _ = self.textarea.replace_element_by_id(id, "");