diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-08 01:49:52 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-08 01:51:50 +0300 |
| commit | e4e14142b1d9708dd582c99555eeab342c057eba (patch) | |
| tree | a66f62f0b04be63396a8026ea191de832c2f908b /src/app/actions.rs | |
| parent | 216aa99d5d911d6f2e16b4ebf9f1d40fc2e96474 (diff) | |
feat: add resizable sidebar sections
Diffstat (limited to 'src/app/actions.rs')
| -rw-r--r-- | src/app/actions.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
