Skip to content

session/goalChanged

The session’s goal block changed value; replace wholesale, an explicit null clears.

Type: SessionGoalChangedParams

session/goalChanged params: the projected goal block’s value changed — identical adoptions emit nothing (the change gate), and an explicit null clears. Replace wholesale; null never means unchanged.

Field Type Stability Presence Description
goal Goal | null required The full current goal block, or null to clear.
sessionId string required The owning session.
sourceRange SourceRange required The durable records this event folded from.
viewCursor string required Opaque, strictly monotonic view cursor.
Source

schema/msp/experimental/msp.schema.json#/notifications/session~2FgoalChanged

{
"description": "The session's goal block changed value; replace wholesale, an explicit null clears.",
"params": {
"$ref": "#/$defs/SessionGoalChangedParams"
}
}