pub struct SessionSnapshot {
pub activity: SessionActivity,
pub admission_active: bool,
pub bash_running: bool,
pub thinking_level_label: String,
pub model_id: String,
pub reasoning: bool,
pub steering: Vec<String>,
pub follow_up: Vec<String>,
pub follow_up_mode: QueueMode,
}Expand description
Snapshot of session state used to project ViewState.
Production builds a real snapshot from AgentSession accessors; tests
return whatever they like.
Fields§
§activity: SessionActivityCurrent mutually exclusive foreground activity.
admission_active: boolWhether a session run is admitted, including non-streaming lifecycle phases.
bash_running: boolWhether bash execution is running.
thinking_level_label: StringActive thinking level label (for footer + editor border).
model_id: StringActive model id (footer).
reasoning: boolWhether the active model supports reasoning.
steering: Vec<String>Pending steering messages (mirror).
follow_up: Vec<String>Pending follow-up messages (mirror).
follow_up_mode: QueueModeQueue delivery mode for follow-up messages.
Implementations§
Source§impl SessionSnapshot
impl SessionSnapshot
Sourcepub fn is_admission_active(&self) -> bool
pub fn is_admission_active(&self) -> bool
Whether product input should be routed into the admitted run.
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionSnapshot
impl Debug for SessionSnapshot
Source§impl Default for SessionSnapshot
impl Default for SessionSnapshot
Source§fn default() -> SessionSnapshot
fn default() -> SessionSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.