pub struct UiState {
pub generated_at_ms: i64,
pub service: HealthResponse,
pub first_session_at_ms: Option<i64>,
pub sessions: Vec<UiSession>,
pub active: Vec<ActiveJob>,
pub queue: Vec<QueuedJob>,
pub meters: Meters,
pub recent: Vec<RecentRun>,
pub notices: Vec<Notice>,
pub ended: Vec<EndedLease>,
}Expand description
Response of GET /ui/state: everything the flyout shows, in one poll.
Fields§
§generated_at_ms: i64When the state was built, in milliseconds since the Unix epoch. Elapsed and waited times are measured against it, so they do not depend on the tray app’s clock.
service: HealthResponseThe daemon itself.
first_session_at_ms: Option<i64>When a Claude session first registered with this install, or None when none ever
has, which shows the first-run card.
sessions: Vec<UiSession>Every registered session, with or without leases.
active: Vec<ActiveJob>Active leases, oldest grant first.
queue: Vec<QueuedJob>Queued leases, in queue order.
meters: MetersMachine meters for the Resources card.
recent: Vec<RecentRun>Recently finished jobs, newest first.
notices: Vec<Notice>Kills and removals, with whether Claude has been told yet.
ended: Vec<EndedLease>Leases that ended in the last minute, however they ended, newest first, so the flyout can hold a card that just went away with how it ended. Older allotd builds send none.