pub struct LiveSession {
pub address: MailAddress,
pub name: String,
pub status: String,
pub door: Door,
pub pid: Option<u32>,
pub cwd: Option<PathBuf>,
pub tmux: Option<String>,
pub transcript: Option<PathBuf>,
}Expand description
One running session on this machine, as the router reaches it.
Fields§
§address: MailAddressIts address.
name: StringThe name an agent knows it by (volter-2c@machine).
status: StringIts status as its harness reports it (busy, idle, hosted, …).
door: DoorThe door that reaches it.
pid: Option<u32>The process running it, when the harness names one (a hosted runtime’s host, a Claude session’s own process).
cwd: Option<PathBuf>Its working directory.
tmux: Option<String>The tmux session and pane it runs in, when Claude records one.
transcript: Option<PathBuf>Its transcript, when the harness names the file (a Codex rollout).
Implementations§
Source§impl LiveSession
impl LiveSession
Sourcepub fn last_message_at_ms(&self, homes: &HarnessHomes) -> Option<u64>
pub fn last_message_at_ms(&self, homes: &HarnessHomes) -> Option<u64>
When its transcript last recorded a message (a prompt, a reply, a tool call or result), in epoch milliseconds: what the session last did, read from the harness’s own records. A queued or injected notice is not a message, so this is not the transcript’s mtime.
Source§impl LiveSession
impl LiveSession
Sourcepub fn pending_request(&self, homes: &HarnessHomes) -> Option<Value>
pub fn pending_request(&self, homes: &HarnessHomes) -> Option<Value>
What a session waiting on its user is asking, read from its transcript: the newest tool call with no result
yet. An AskUserQuestion gives its questions, headers and option labels; any other tool its name and a
shortened input. None when the session is not waiting or its transcript shows nothing pending.
Trait Implementations§
Source§impl Clone for LiveSession
impl Clone for LiveSession
Source§impl Debug for LiveSession
impl Debug for LiveSession
impl Eq for LiveSession
Source§impl PartialEq for LiveSession
impl PartialEq for LiveSession
impl StructuralPartialEq for LiveSession
Auto Trait Implementations§
impl Freeze for LiveSession
impl RefUnwindSafe for LiveSession
impl Send for LiveSession
impl Sync for LiveSession
impl Unpin for LiveSession
impl UnsafeUnpin for LiveSession
impl UnwindSafe for LiveSession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.