pub struct SessionEntry {
pub session_id: String,
pub cwd: Option<PathBuf>,
pub transcript_path: Option<PathBuf>,
pub repo: Option<String>,
pub model: Option<String>,
pub agent: Agent,
pub state: SessionState,
pub source: Source,
pub last_event: SessionEvent,
pub started_at: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
/* private fields */
}Expand description
One live session in the registry.
Serialized verbatim into list / status payloads; consumers compute age
from last_seen (RFC 3339). source is resolved at
list time (stored as Source::Terminal until
then).
Fields§
§session_id: StringThe Claude session_id.
cwd: Option<PathBuf>The session’s working directory, when known.
transcript_path: Option<PathBuf>The transcript path, when known.
repo: Option<String>The repository name enriched from cwd, when resolvable.
model: Option<String>The model id, when reported.
agent: AgentWhich agent the session belongs to. Set by the first sighting and never changed, since a session id belongs to exactly one agent.
state: SessionStateThe current inferred state.
source: SourceWhere the session runs, resolved on read.
last_event: SessionEventThe most recent event observed for this session.
started_at: DateTime<Utc>When the session was first observed (RFC 3339).
last_seen: DateTime<Utc>When the registry last heard from this session (RFC 3339). Wall-clock,
for display only: liveness is measured on last_active.
Trait Implementations§
Source§impl Clone for SessionEntry
impl Clone for SessionEntry
Source§impl Debug for SessionEntry
impl Debug for SessionEntry
Auto Trait Implementations§
impl Freeze for SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnsafeUnpin for SessionEntry
impl UnwindSafe for SessionEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more