#[non_exhaustive]pub struct SessionStatusChangedParams {
pub session_id: String,
pub status: SessionStatus,
pub attention: Option<Vec<AttentionFlag>>,
pub permission_state: Option<EffectivePermissionState>,
pub view_cursor: Option<String>,
}Expand description
session/statusChanged params: a loaded session’s projected (status, attention) value flipped. A command-plane broadcast — delivered to every
connection regardless of its view subscription set, never gated, no
sourceRange; the same facts live on the Session object, which is how a
client seeds its table (no initial burst on connect).
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_id: StringThe owning session.
status: SessionStatusLoad state after the transition.
attention: Option<Vec<AttentionFlag>>Attention flags after the transition; present only when at least one flag is set.
permission_state: Option<EffectivePermissionState>The folded effective permission state — the same object the Session
carries as permissionState. Additive- optional: a loaded session
carries it; a "notLoaded" unload frame and an older host omit it (the
attention precedent), and absence is unknown, never active. A
projection of the ONE stored attach face session/read and the
session/list rows serve, never a restatement. Part of the change gate:
a change in ONLY this answer — with (status, attention) unchanged — is
a publishable change, deduped only when value-identical, carried on the
next session/statusChanged frame.
view_cursor: Option<String>The causing record’s view cursor. Required-nullable: null exactly when
the paired session/closed’s cursor is null (the unload fold-failure
arm); a definite cursor everywhere else.