tui: filter panel pods by workspace

This commit is contained in:
2026-06-19 00:14:02 +09:00
parent e2e76d3beb
commit 3b634d66ca
7 changed files with 292 additions and 14 deletions
+8
View File
@@ -100,6 +100,8 @@ pub struct PodMetadata {
pub pod_name: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub active: Option<PodActiveSegmentRef>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub workspace_root: Option<PathBuf>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub spawned_children: Vec<PodSpawnedChild>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
@@ -116,12 +118,18 @@ impl PodMetadata {
Self {
pod_name: pod_name.into(),
active,
workspace_root: None,
spawned_children: Vec::new(),
reclaimed_children: Vec::new(),
peers: Vec::new(),
resolved_manifest_snapshot: None,
}
}
pub fn with_workspace_root(mut self, workspace_root: PathBuf) -> Self {
self.workspace_root = Some(workspace_root);
self
}
}
/// Sync persistence backend for Pod metadata.