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/mobile.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/ui/mobile.rs') diff --git a/src/ui/mobile.rs b/src/ui/mobile.rs index 10b58af0..299a152b 100644 --- a/src/ui/mobile.rs +++ b/src/ui/mobile.rs @@ -11,7 +11,7 @@ use super::sidebar::{ next_entry_is_indented_workspace, workspace_list_entries_expanded, AgentPanelEntry, WorkspaceListEntry, }; -use super::status::{agent_icon, state_dot}; +use super::status::state_dot; use super::text::{display_width_u16, truncate_end}; use crate::app::state::{Palette, ToastKind, ToastNotification}; use crate::app::AppState; @@ -326,14 +326,7 @@ fn render_header_status( }; let (state, seen) = ws.aggregate_state(&app.terminals); - let (dot, dot_style) = if matches!(state, AgentState::Working) { - ( - super::spinner_frame(app.spinner_tick), - Style::default().fg(p.yellow), - ) - } else { - state_dot(state, seen, p) - }; + let (dot, dot_style) = state_dot(state, seen, p); let tab_label = mobile_tab_status(ws); let row1 = Rect::new(area.x, area.y, area.width, 1); let tab_w = display_width_u16(&tab_label) @@ -539,7 +532,7 @@ fn render_mobile_switcher_content( entry.ws_idx == ws_idx && entry.tab_idx == tab_idx && entry.pane_id == pane_id }); let bg = mobile_item_bg(false, active, p); - let (icon, icon_style) = agent_icon(entry.state, entry.seen, app.spinner_tick, p); + let (icon, icon_style) = state_dot(entry.state, entry.seen, p); let title = Line::from(vec![ Span::styled(" ", Style::default().bg(bg)), Span::styled(icon, icon_style.bg(bg)), -- cgit v1.2.3