pub struct SessionMetadataSnapshotResult {Show 14 fields
pub already_in_use: bool,
pub client_name: Option<String>,
pub current_mode: MetadataSnapshotCurrentMode,
pub initial_name: Option<String>,
pub is_remote: bool,
pub modified_time: String,
pub remote_metadata: Option<MetadataSnapshotRemoteMetadata>,
pub selected_model: Option<String>,
pub session_id: SessionId,
pub start_time: String,
pub summary: Option<String>,
pub working_directory: String,
pub workspace: Option<SessionMetadataSnapshotResultWorkspace>,
pub workspace_path: Option<String>,
}Expand description
Point-in-time snapshot of slow-changing session identifier and state fields
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§already_in_use: boolTrue when the session was detected to be in use by another process at construction time. Local consumers may surface a confirmation prompt before fully attaching. Always false for new sessions.
client_name: Option<String>Runtime client name associated with the session (telemetry identifier).
current_mode: MetadataSnapshotCurrentModeThe current agent mode for this session (e.g., ‘interactive’, ‘plan’, ‘autopilot’)
initial_name: Option<String>User-provided name supplied at session construction (via --name), if any. Immutable after construction.
is_remote: boolWhether this is a remote session (i.e., one whose runtime executes elsewhere and is steered through this process)
modified_time: StringISO 8601 timestamp of when the session’s persisted state was last modified on disk. For new sessions, equals startTime. For resumed sessions, reflects the previous modification time at construction.
remote_metadata: Option<MetadataSnapshotRemoteMetadata>Remote-session-specific metadata. Populated only when isRemote is true. Fields are immutable for the lifetime of the session.
selected_model: Option<String>Currently selected model identifier, if any
session_id: SessionIdThe unique identifier of the session
start_time: StringISO 8601 timestamp of when the session started
summary: Option<String>Short human-readable summary of the session, if known. Omitted when no summary has been generated.
working_directory: StringAbsolute path to the session’s current working directory
workspace: Option<SessionMetadataSnapshotResultWorkspace>Public-facing workspace metadata for this session, or null if the session has no associated workspace. Excludes runtime-internal fields (GitHub IDs, summary count, internal flags).
workspace_path: Option<String>Absolute path to the session’s workspace directory on disk, or null if the session has no associated workspace
Trait Implementations§
Source§impl Clone for SessionMetadataSnapshotResult
impl Clone for SessionMetadataSnapshotResult
Source§fn clone(&self) -> SessionMetadataSnapshotResult
fn clone(&self) -> SessionMetadataSnapshotResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more