mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
## What changed Replace `tui.whimsy` with `[tui.effects]` preferences for `starfield`, `shimmer`, `welcome`, `effort`, `progress`, and `title`. Each defaults to `true` and remains subordinate to the `tui.animations` master switch. Wire the preferences into composer effects, welcome artwork, status and loading text, progress indicators, and terminal-title animations. For example, disable shimmering text while keeping progress animations: ```toml [tui.effects] shimmer = false ``` Keep retired `tui.whimsy` entries loadable but ignore their value. Update the configuration schema to expose the new preferences. ## Testing Add and extend coverage for independent shimmer and progress effects, master-switch precedence, welcome and starfield controls, terminal-title blinking, and strict configuration loading with the retired setting. GitOrigin-RevId: 28b37ba52872133b8954543cabe9ff424147f1c5
29 lines
890 B
Rust
29 lines
890 B
Rust
//! Manual recap progress presentation for `ChatWidget`.
|
|
|
|
use super::*;
|
|
|
|
impl ChatWidget {
|
|
pub(crate) fn show_recap_loading(&mut self) {
|
|
self.flush_answer_stream_with_separator();
|
|
self.flush_active_cell();
|
|
self.transcript.active_cell = Some(Box::new(history_cell::ThreadRecapLoadingCell::new(
|
|
self.local_settings.tui.animations && self.local_settings.tui.effects.progress,
|
|
)));
|
|
self.bump_active_cell_revision();
|
|
self.request_redraw();
|
|
}
|
|
|
|
pub(crate) fn clear_recap_loading(&mut self) {
|
|
let Some(active) = self.transcript.active_cell.as_ref() else {
|
|
return;
|
|
};
|
|
if !active.as_any().is::<history_cell::ThreadRecapLoadingCell>() {
|
|
return;
|
|
}
|
|
|
|
self.transcript.active_cell = None;
|
|
self.bump_active_cell_revision();
|
|
self.request_redraw();
|
|
}
|
|
}
|