pub struct AgentRegistryLiveTargetEntry {Show 17 fields
pub attention_kind: Option<AgentRegistryLiveTargetEntryAttentionKind>,
pub branch: Option<String>,
pub copilot_version: String,
pub cwd: Option<String>,
pub host: String,
pub kind: AgentRegistryLiveTargetEntryKind,
pub last_seen_ms: i64,
pub last_terminal_event: Option<AgentRegistryLiveTargetEntryLastTerminalEvent>,
pub model: Option<String>,
pub pid: i64,
pub port: i64,
pub schema_version: i64,
pub session_id: Option<SessionId>,
pub session_name: Option<String>,
pub started_at: String,
pub status: Option<AgentRegistryLiveTargetEntryStatus>,
pub status_revision: Option<i64>,
/* private fields */
}Expand description
Full registry entry for the spawned child. Lets the controller call handleLiveTargetSelected(entry) directly without re-reading the registry (avoids a TOCTOU window).
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§attention_kind: Option<AgentRegistryLiveTargetEntryAttentionKind>Kind of attention required when status === “attention”. Meaningful only when status === “attention”.
branch: Option<String>Git branch of the session (when known)
copilot_version: StringCopilot CLI version that wrote the entry
cwd: Option<String>Working directory of the session (when known)
host: StringBind host for the entry’s JSON-RPC server
kind: AgentRegistryLiveTargetEntryKindProcess kind tag for the registry entry
last_seen_ms: i64Wall-clock milliseconds since the watcher last observed this entry (heartbeat freshness)
last_terminal_event: Option<AgentRegistryLiveTargetEntryLastTerminalEvent>How the most recent turn ended (clean vs aborted). Lets the renderer distinguish done from done_cancelled.
model: Option<String>Model identifier currently selected for the session
pid: i64Operating-system pid of the process owning this entry
port: i64TCP port the entry’s JSON-RPC server is listening on
schema_version: i64Registry entry schema version (1 = ui-server, 2 = managed-server)
session_id: Option<SessionId>Session ID of the foreground session for this entry
session_name: Option<String>Friendly session name (when set)
started_at: StringISO 8601 timestamp captured at registration
status: Option<AgentRegistryLiveTargetEntryStatus>Coarse lifecycle status of the foreground session
status_revision: Option<i64>Monotonic per-publisher revision counter incremented on every status update. Lets watchers detect transient flips.
Trait Implementations§
Source§impl Clone for AgentRegistryLiveTargetEntry
impl Clone for AgentRegistryLiveTargetEntry
Source§fn clone(&self) -> AgentRegistryLiveTargetEntry
fn clone(&self) -> AgentRegistryLiveTargetEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more