#[non_exhaustive]pub struct SessionReadResult {
pub session: Session,
pub recovery_observation: Option<RecoveryObservation>,
pub view_cursor: String,
pub history: SessionHistory,
pub pending_requests: Vec<PendingRequestPointer>,
pub last_turn: Option<LastTurn>,
pub blocked_prompt: Option<BlockedPrompt>,
pub queued_inputs: Option<Vec<QueuedInput>>,
pub worktree: Option<RuntimeWorktree>,
}Expand description
session/read result. The viewCursor is the fold head at read time — a
point-in-time read, immediately stale if a foreign host is appending.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: SessionThe session as folded point-in-time.
recovery_observation: Option<RecoveryObservation>Current local construction only; never inferred from retained history. Absence establishes neither a choice nor supported recovery.
view_cursor: StringThe fold head at read time.
history: SessionHistoryThe served history.
pending_requests: Vec<PendingRequestPointer>The same pointer shape as session/resume. Because session/read never
subscribes this is a point-in-time log read only: no requests are
re-issued after it.
last_turn: Option<LastTurn>Same member as session/resume.
blocked_prompt: Option<BlockedPrompt>Same member as session/resume.
queued_inputs: Option<Vec<QueuedInput>>The inputs still queued for delivery to the read session. Absent-when-empty: a missing member means nothing queued, never an error.
worktree: Option<RuntimeWorktree>The facts of the runtime-owned worktree a child read session’s subagent runs in. A root read serves it absent; absent means no worktree facts, never an error.