pub struct SessionResumeData {Show 14 fields
pub already_in_use: Option<bool>,
pub context: Option<WorkingDirectoryContext>,
pub context_tier: Option<ContextTier>,
pub continue_pending_work: Option<bool>,
pub event_count: i64,
pub events_file_size_bytes: Option<i64>,
pub reasoning_effort: Option<String>,
pub reasoning_summary: Option<ReasoningSummary>,
pub remote_steerable: Option<bool>,
pub resume_time: String,
pub selected_model: Option<String>,
pub session_limits: Option<SessionLimitsConfig>,
pub session_was_active: Option<bool>,
pub verbosity: Option<Verbosity>,
}Expand description
Session event “session.resume”. Session resume metadata including current context and event count
Fields§
§already_in_use: Option<bool>Whether the session was already in use by another client at resume time
context: Option<WorkingDirectoryContext>Updated working directory and git context at resume time
context_tier: Option<ContextTier>Context tier currently selected at resume time; null when no tier is active
continue_pending_work: Option<bool>When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after resume and the agentic loop awaits their results. User sends are queued behind the pending work until all such requests reach a terminal state. When false or omitted, pending work is normally marked as interrupted unless the resume passively joined live work owned by another client; sessionWasActive distinguishes that case.
event_count: i64Total number of persisted events in the session at the time of resume
events_file_size_bytes: Option<i64>On-disk byte size of the session’s persisted events.jsonl file at resume time; omitted when the file does not exist or cannot be stat’d
reasoning_effort: Option<String>Reasoning effort level used for model calls, if applicable (e.g. “none”, “low”, “medium”, “high”, “xhigh”, “max”)
reasoning_summary: Option<ReasoningSummary>Reasoning summary mode used for model calls, if applicable (e.g. “none”, “concise”, “detailed”)
remote_steerable: Option<bool>Whether this session supports remote steering via GitHub
resume_time: StringISO 8601 timestamp when the session was resumed
selected_model: Option<String>Model currently selected at resume time
session_limits: Option<SessionLimitsConfig>Session limits currently configured at resume time; null when no limits are active
session_was_active: Option<bool>True when this resume passively joined a session that already had live work running in the runtime - an agent turn, a native queue run, a queued resume continuation, or an in-flight send (for example, an extension joining a session another client was actively driving). False (or omitted) when the session had no live work or when the resume explicitly abandoned pending work, including cold resumes and suspended sessions that remain resident in memory.
verbosity: Option<Verbosity>Output verbosity level used for model calls, if applicable (e.g. “low”, “medium”, “high”)
Trait Implementations§
Source§impl Clone for SessionResumeData
impl Clone for SessionResumeData
Source§fn clone(&self) -> SessionResumeData
fn clone(&self) -> SessionResumeData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more