#[non_exhaustive]pub struct SessionStartResult {
pub session: Session,
pub view_cursor: String,
pub warnings: Option<Vec<SessionLoadWarning>>,
pub node_roster: Option<SessionStartNodeRoster>,
pub applied_built_in_tools: Option<Vec<String>>,
pub admitted_session_mcp_servers: Option<Vec<String>>,
}Expand description
session/start 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 new session.
view_cursor: StringThe session view head after the start fold; the connection is subscribed and receives every view event after this cursor. A deduplicated retry returns this same result.
warnings: Option<Vec<SessionLoadWarning>>What the host did not apply. Experimental
(session/start.warnings). Absent when there is nothing to warn about,
never an empty array.
node_roster: Option<SessionStartNodeRoster>The roster the session started with. Experimental
(session/start.nodeRoster; stripped per-connection for unopted
callers). Present when the start named nodes, the host attached them and
the session is still loaded with that roster; a retry answered after
that omits it. A client that named nodes and reads no echo sends no turn
to the session.
applied_built_in_tools: Option<Vec<String>>The built-in tool set this start 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/start.appliedBuiltInTools).
admitted_session_mcp_servers: Option<Vec<String>>The session MCP servers this start admitted. Experimental
(session/start.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.