aboutsummaryrefslogtreecommitdiff
path: root/src/app/actions.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-08 01:49:52 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-08 01:51:50 +0300
commite4e14142b1d9708dd582c99555eeab342c057eba (patch)
treea66f62f0b04be63396a8026ea191de832c2f908b /src/app/actions.rs
parent216aa99d5d911d6f2e16b4ebf9f1d40fc2e96474 (diff)
feat: add resizable sidebar sections
Diffstat (limited to 'src/app/actions.rs')
-rw-r--r--src/app/actions.rs6
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);