aboutsummaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-17 16:08:43 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-17 16:08:43 +0300
commit54490254f70469cd154ee630bc4bec84da178f0c (patch)
tree450bf0397398b28932f636d33e37f73c011dd19d /src/app/state.rs
parentd998753efe506a04c80306795efc72bff60bb0ec (diff)
feat: sort agent panel by priority
refs #318
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index 089834d8..585bb3e4 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -832,11 +832,11 @@ pub(crate) enum CopyModeSelection {
Linewise { anchor_row: u32 },
}
-#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
-pub enum AgentPanelScope {
- CurrentWorkspace,
+#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
+pub enum AgentPanelSort {
#[default]
- AllWorkspaces,
+ Spaces,
+ Priority,
}
// ---------------------------------------------------------------------------
@@ -1340,7 +1340,8 @@ pub struct AppState {
pub sidebar_collapsed: bool,
/// Ratio of sidebar height allocated to the workspaces section.
pub sidebar_section_split: f32,
- pub agent_panel_scope: AgentPanelScope,
+ pub agent_panel_sort: AgentPanelSort,
+ pub next_agent_state_change_seq: u64,
/// Capture mouse input for Herdr's own mouse UI. When false, Herdr only
/// captures mouse while the focused pane app requests mouse reporting.
pub mouse_capture: bool,
@@ -1689,7 +1690,8 @@ impl AppState {
sidebar_width_auto: false,
sidebar_collapsed: false,
sidebar_section_split: 0.5,
- agent_panel_scope: AgentPanelScope::AllWorkspaces,
+ agent_panel_sort: AgentPanelSort::Spaces,
+ next_agent_state_change_seq: 0,
mouse_capture: true,
right_click_passthrough_modifiers: None,
right_click_passthrough: None,