pub enum SessionSource {
Human,
Agent,
Named(String),
}Expand description
Who/what created a session. Operator-visible provenance.
Internally tagged so the wire shape stays compact + future
Named(_) etc. can land without churning the variant ordering.
Variants§
Human
A human user (CLI, tear up, ghostty/iTerm interactive shell).
Agent
An AI agent — Claude Code, Cursor, OpenCode, the mado MCP
surface. Default for sessions created via the MCP path so
operators can tear list --source agent and triage.
Named(String)
A named automation (CI job, scheduled task, sidecar). The
id is operator-defined — e.g. "pleme-ci-deploy" —
surfaced verbatim in tear list. Lets one daemon hold
sessions from many automations without colliding under a
single Agent bucket.
Implementations§
Trait Implementations§
Source§impl Clone for SessionSource
impl Clone for SessionSource
Source§fn clone(&self) -> SessionSource
fn clone(&self) -> SessionSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionSource
impl Debug for SessionSource
Source§impl Default for SessionSource
impl Default for SessionSource
Source§impl<'de> Deserialize<'de> for SessionSource
impl<'de> Deserialize<'de> for SessionSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionSource
Source§impl Hash for SessionSource
impl Hash for SessionSource
Source§impl PartialEq for SessionSource
impl PartialEq for SessionSource
Source§impl Serialize for SessionSource
impl Serialize for SessionSource
impl StructuralPartialEq for SessionSource
Auto Trait Implementations§
impl Freeze for SessionSource
impl RefUnwindSafe for SessionSource
impl Send for SessionSource
impl Sync for SessionSource
impl Unpin for SessionSource
impl UnsafeUnpin for SessionSource
impl UnwindSafe for SessionSource
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