From 54490254f70469cd154ee630bc4bec84da178f0c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 17 Jun 2026 16:08:43 +0300 Subject: feat: sort agent panel by priority refs #318 --- src/app/runtime.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/app/runtime.rs') diff --git a/src/app/runtime.rs b/src/app/runtime.rs index cb2e5712..815701b7 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -336,18 +336,10 @@ impl App { } fn agent_panel_has_animation(&self) -> bool { - match self.state.agent_panel_scope { - crate::app::state::AgentPanelScope::CurrentWorkspace => self - .state - .active - .and_then(|idx| self.state.workspaces.get(idx)) - .is_some_and(|ws| ws.has_working_pane(&self.state.terminals)), - crate::app::state::AgentPanelScope::AllWorkspaces => self - .state - .workspaces - .iter() - .any(|ws| ws.has_working_pane(&self.state.terminals)), - } + self.state + .workspaces + .iter() + .any(|ws| ws.has_working_pane(&self.state.terminals)) } pub(crate) fn tick_selection_autoscroll(&mut self, now: Instant) { -- cgit v1.2.3