#[non_exhaustive]pub struct SessionResumeResult {Show 18 fields
pub session: Session,
pub view_cursor: String,
pub history: SessionHistory,
pub pending_requests: Vec<PendingRequestPointer>,
pub last_turn: Option<LastTurn>,
pub tightened_axes: Option<Vec<String>>,
pub blocked_prompt: Option<BlockedPrompt>,
pub abnormal_end: Option<AbnormalEnd>,
pub pruned_subagents: Option<Vec<PrunedSubagent>>,
pub cron_quarantine: Option<CronQuarantine>,
pub restart_receipts: Option<Vec<RestartReceipt>>,
pub unavailable_input_assets: Option<Vec<UnavailableInputAsset>>,
pub missing_predecessor: Option<MissingPredecessor>,
pub model_id_refusal: Option<ModelIdRefusal>,
pub auto_recovery: Option<AutoRecovery>,
pub warnings: Option<Vec<SessionLoadWarning>>,
pub applied_built_in_tools: Option<Vec<String>>,
pub admitted_session_mcp_servers: Option<Vec<String>>,
}Expand description
session/resume result.
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 loaded session.
view_cursor: StringThe session view head; the connection is subscribed after it. A
still-loaded session a prior view/unsubscribe detached is RE-ATTACHED
by this resume: live delivery resumes from this head. Explicit-cursor
re-attach with (after, head] engine replay stays view/subscribe.
history: SessionHistoryThe served history.
pending_requests: Vec<PendingRequestPointer>The late-joiner pointer set; empty when nothing is pending.
last_turn: Option<LastTurn>How the last folded turn ended. Additive-optional; absence is a non-assertion.
tightened_axes: Option<Vec<String>>The axes this resume tightened: when the stored choice exceeds the
restarted host’s narrower ceiling, the resume clamps to fit, carries the
tightened currentLimits on the session, and names each tightened axis
here. Experimental, same-user socket only
(session/resume.tightenedAxes; stripped per-connection for unopted
callers). Absent when nothing tightened — never an empty array.
blocked_prompt: Option<BlockedPrompt>The recallable blocked prompt’s refill text. Additive-optional;
absence means no blocked prompt to recall (an unblocked session, or a
pre-feature host). Data only, never a rendered row: clients seed cold
recall from it (C-p refills text) and MUST NOT display it as history.
abnormal_end: Option<AbnormalEnd>The previous run’s abnormal end this resume’s own load adopted.
Experimental (session/resume.abnormalEnd; stripped for unopted
connections); absence asserts nothing (an attach to a loaded session, a
clean prior end, or an older host). Clients may show a one-time notice
from it.
pruned_subagents: Option<Vec<PrunedSubagent>>One short record per child session the checkpoint boundary pruned.
Additive-optional, like queuedInputs on the read:
absent-when-empty, never stripped.
cron_quarantine: Option<CronQuarantine>The cron quarantine this resume’s own load adopted. Experimental
(session/resume.cronQuarantine; stripped for unopted connections);
absence asserts nothing (an attach to a loaded session, a healthy or
missing store, or an older host). Clients show the gate-off warning row
once from it.
restart_receipts: Option<Vec<RestartReceipt>>The manual-compaction restart receipts this resume’s own load scanned.
Experimental (session/resume.restartReceipts); absence asserts
nothing (an attach to a loaded session, no unserved restart arm, or an
older host). Absent when the scan found none — never an empty array.
Each entry mirrors the runtime ManualCompactionReceipt; clients apply
them through the shared receipt path.
The retained input images this resume’s own report load replaced with
a marker, one entry per distinct digest (a provisional owner ruling) at
its first occurrence: runs in the log position of their accepted User
Intent record (a run with none at its first run record), then images by
position in the run. Experimental
(session/resume.unavailableInputAssets; stripped for unopted
connections); absent when nothing was replaced, never an empty array.
missing_predecessor: Option<MissingPredecessor>The declared predecessor whose retained log this resume’s own load found
missing. Experimental (session/resume.missingPredecessor; stripped
for unopted connections); absence asserts nothing (an attach to a loaded
session, a root session, a present predecessor, or an older host).
Clients show the gate-off missing-predecessor notice once from it.
model_id_refusal: Option<ModelIdRefusal>The modelId this resume carried and the host refused: the session
opened on its recorded model, which session reports. Experimental
(session/resume.modelIdRefusal; stripped for unopted connections);
absent when the resume carried no modelId or the host recorded or kept
it. Clients show the model kept and the reason once from it.
auto_recovery: Option<AutoRecovery>The auto-recover outcome of this resume’s own load (amendment
26387/68619, G-23). Experimental (session/resume.autoRecovery;
stripped for unopted connections); absent unless the load ran with
the resume_auto_recover gate on (whatever the session’s
recoveryMode, G-37), so a gate-off host’s result is unchanged.
warnings: Option<Vec<SessionLoadWarning>>What the host did not apply. Experimental
(session/resume.warnings). Absent when there is nothing to warn about,
never an empty array.
applied_built_in_tools: Option<Vec<String>>The built-in tool set this resume runs with, when the request
spelled config.allowedBuiltInTools and the host serves the
restriction (design kt-2n1z N3): the post-intersection set, []
when applied-to-empty. Absent = not requested or a pre-feature
host; an absent echo on a spelled input means unapplied. Declared
here (P5, kt-kqr8), never filled until the last enforcing piece
(P8). Experimental (session/resume.appliedBuiltInTools).
admitted_session_mcp_servers: Option<Vec<String>>The session MCP servers this resume admitted, on the start echo’s
discipline. Experimental
(session/resume.admittedSessionMcpServers). Present iff the
request spelled config.admitSessionMcpServers and the admission
gate is open; the value is the effective admitted set — names
joined and not withheld, [] when applied-to-empty. Absent means
not requested or a pre-feature host. Never filled before the last
enforcing piece lands, so no host can read “applied” early.