From 81f355fadac7d0d45b077dfc28f9f679add6bbb6 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 28 Jul 2026 14:56:51 +0300 Subject: perf: replace agent spinners with static status marks --- src/ui.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/ui.rs') diff --git a/src/ui.rs b/src/ui.rs index 59145dd2..bf67d9fd 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -105,15 +105,6 @@ use crate::terminal::TerminalRuntimeRegistry; const COLLAPSED_WIDTH: u16 = 4; // num + space + dot + separator -// Braille spinner frames — smooth rotation -const SPINNERS: &[&str] = &["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]; - -/// Map spinner_tick (incremented every frame at ~60fps) to a spinner frame. -/// We want ~8 updates/sec so divide by 8. -pub(super) fn spinner_frame(tick: u32) -> &'static str { - SPINNERS[(tick as usize / 8) % SPINNERS.len()] -} - /// Compute view geometry and reconcile pane sizes. /// Called before render to separate mutation from drawing. #[cfg_attr(not(test), allow(dead_code))] @@ -401,7 +392,7 @@ pub fn render_with_runtime_registry( let tab_bar_area = app.view.tab_bar_rect; let terminal_area = app.view.terminal_area; - render_working_animation(app, terminal_runtimes, frame); + render_navigation_chrome(app, terminal_runtimes, frame); if app.view.layout != ViewLayout::Mobile { render_tab_bar(app, frame, tab_bar_area); } @@ -452,7 +443,7 @@ pub fn render_with_runtime_registry( } } -pub(crate) fn render_working_animation( +fn render_navigation_chrome( app: &AppState, terminal_runtimes: &TerminalRuntimeRegistry, frame: &mut Frame, -- cgit v1.2.3