pub enum TreeNode {
Project {
name: String,
root: String,
children: Vec<TreeNode>,
},
Worktree {
path: String,
branch: Option<String>,
children: Vec<TreeNode>,
},
Team {
name: String,
children: Vec<TreeNode>,
},
Agent {
session: SessionView,
subagents: Vec<TreeNode>,
},
}Expand description
A node in the session grouping tree.
Variants§
Project
A git project (repo root). Groups all agents across its worktrees.
Fields
Worktree
A git worktree within a project.
Fields
Team
Placeholder for CC Agent Teams integration (Phase 6).
Agent
A single session (leaf node).
Implementations§
Source§impl TreeNode
impl TreeNode
Sourcepub fn agent_count(&self) -> usize
pub fn agent_count(&self) -> usize
Returns the total number of agent sessions in this subtree.
Sourcepub fn needs_attention(&self) -> bool
pub fn needs_attention(&self) -> bool
Returns true if any agent in this subtree needs attention.
Sourcepub fn node_id(&self) -> TreeNodeId
pub fn node_id(&self) -> TreeNodeId
Returns the TreeNodeId for this node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeNode
impl RefUnwindSafe for TreeNode
impl Send for TreeNode
impl Sync for TreeNode
impl Unpin for TreeNode
impl UnsafeUnpin for TreeNode
impl UnwindSafe for TreeNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more