From e4e14142b1d9708dd582c99555eeab342c057eba Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 8 Apr 2026 01:49:52 +0300 Subject: feat: add resizable sidebar sections --- src/app/actions.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/app/actions.rs') diff --git a/src/app/actions.rs b/src/app/actions.rs index ac9b9243..fff092d3 100644 --- a/src/app/actions.rs +++ b/src/app/actions.rs @@ -106,6 +106,12 @@ impl AppState { if idx < self.workspaces.len() { self.active = Some(idx); self.selected = idx; + if matches!( + self.agent_panel_scope, + crate::app::state::AgentPanelScope::CurrentWorkspace + ) { + self.agent_panel_scroll = 0; + } self.ensure_workspace_visible(idx); if let Some(ws) = self.workspaces.get_mut(idx) { ws.switch_tab(ws.active_tab); -- cgit v1.2.3