From 1f1e434268ad6e8102fdac6d5996e3f190138a28 Mon Sep 17 00:00:00 2001 From: akbash Date: Wed, 5 Aug 2026 02:18:56 +0300 Subject: fix(config): accept retired agent panel scope (#2295) refs #2292 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik --- src/config/model.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/config/model.rs') diff --git a/src/config/model.rs b/src/config/model.rs index 97b8c7fa..5cbafaec 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -106,6 +106,13 @@ impl AgentPanelSortConfig { } } +#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)] +#[serde(rename_all = "lowercase")] +enum LegacyAgentPanelScopeConfig { + Current, + All, +} + #[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize, Default)] #[serde(rename_all = "lowercase")] pub enum StatusIndicatorStyle { @@ -843,6 +850,9 @@ pub struct UiConfig { pub tab_bar_position: TabBarPositionConfig, /// Agent sidebar ordering. Saved values are "spaces" or "priority". Default: "spaces". pub agent_panel_sort: AgentPanelSortConfig, + /// Retired setting that Herdr wrote before the workspace filter was removed. + #[serde(rename = "agent_panel_scope")] + _legacy_agent_panel_scope: Option, /// Agent status indicator style. Saved values are "dots" or "symbols". Default: "dots". pub status_indicators: StatusIndicatorStyle, /// Expanded sidebar row composition. @@ -1048,6 +1058,7 @@ impl Default for UiConfig { hide_tab_bar_when_single_tab: false, tab_bar_position: TabBarPositionConfig::Top, agent_panel_sort: AgentPanelSortConfig::Spaces, + _legacy_agent_panel_scope: None, status_indicators: StatusIndicatorStyle::Dots, sidebar: SidebarConfig::default(), accent: "cyan".into(), -- cgit v1.2.3