From 08f689843f48f20c075179b9a279649cb55fbe9e Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 16 Feb 2026 18:17:52 -0800 Subject: [PATCH] Fixed screen reader regression in CLI (#11860) The `tui.animations` switch should gate all animations in the TUI, but a recent change introduced a regression that didn't include the gate. This makes it difficult to use the TUI with a screen reader. This fix addresses #11856 --- codex-rs/tui/src/status_indicator_widget.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/codex-rs/tui/src/status_indicator_widget.rs b/codex-rs/tui/src/status_indicator_widget.rs index 94eb038ce..b41a2fa3c 100644 --- a/codex-rs/tui/src/status_indicator_widget.rs +++ b/codex-rs/tui/src/status_indicator_widget.rs @@ -218,9 +218,11 @@ impl Renderable for StatusIndicatorWidget { return; } - // Schedule next animation frame. - self.frame_requester - .schedule_frame_in(Duration::from_millis(32)); + if self.animations_enabled { + // Schedule next animation frame. + self.frame_requester + .schedule_frame_in(Duration::from_millis(32)); + } let now = Instant::now(); let elapsed_duration = self.elapsed_duration_at(now); let pretty_elapsed = fmt_elapsed_compact(elapsed_duration.as_secs());