Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fixed screen reader regression in CLI (#11860)

Eric Traut08f689843f48
diff --git a/codex-rs/tui/src/status_indicator_widget.rs b/codex-rs/tui/src/status_indicator_widget.rs
index 94eb038cef..b41a2fa3ca 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());