From a36da363f14639085bec91d7a378d6c2eeaa6c58 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 17 May 2026 01:41:16 +0300 Subject: refactor: extract terminal state and runtime from panes --- src/app/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/runtime.rs') diff --git a/src/app/runtime.rs b/src/app/runtime.rs index 4d2f6c47..98ae4e0e 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -198,12 +198,12 @@ impl App { .state .active .and_then(|idx| self.state.workspaces.get(idx)) - .is_some_and(Workspace::has_working_pane), + .is_some_and(|ws| ws.has_working_pane(&self.state.terminals)), crate::app::state::AgentPanelScope::AllWorkspaces => self .state .workspaces .iter() - .any(Workspace::has_working_pane), + .any(|ws| ws.has_working_pane(&self.state.terminals)), } } -- cgit v1.2.3