aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mobile.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-28 14:56:51 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-28 14:56:53 +0300
commit81f355fadac7d0d45b077dfc28f9f679add6bbb6 (patch)
tree8c734b443c28ee4de8c4058f5a0c25cafbd057bd /src/ui/mobile.rs
parent1491b7dd9c992ef0ad2b763f3e450befaf25c47f (diff)
perf: replace agent spinners with static status marks
Diffstat (limited to 'src/ui/mobile.rs')
-rw-r--r--src/ui/mobile.rs13
1 files changed, 3 insertions, 10 deletions
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)),