on_session_start(
self,
cause: SessionStartCause,
*,
model: str | None = None
) -> HookOutcome| Name | Type | Description |
|---|---|---|
cause* | SessionStartCause | Lifecycle boundary that started the session. |
model | str | None | Default: NoneActive model identifier, when known. |
Run SessionStart and accumulate any context it returns.
Context is retained rather than returned; take_pending_context
consumes it when the next model turn is assembled.