Skip to main content

SessionResumeResult

Struct SessionResumeResult 

Source
#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§session: Session

The loaded session.

§view_cursor: String

The 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: SessionHistory

The 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.

§unavailable_input_assets: Option<Vec<UnavailableInputAsset>>

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.

Trait Implementations§

Source§

impl Clone for SessionResumeResult

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SessionResumeResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SessionResumeResult

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SessionResumeResult

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SessionResumeResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SessionResumeResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.