Skip to content
Developer Preview

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.

  • goal
  • sessionId
  • sourceRange
  • viewCursor
Source

schema/msp/experimental/msp.schema.json#/types/SessionGoalChangedParams

{
"description": "`session/goalChanged` params: the projected goal block's\nvalue changed — identical adoptions emit nothing (the change gate), and\nan explicit `null` clears. Replace wholesale; `null` never means\nunchanged.",
"properties": {
"goal": {
"$ref": "#/$defs/Goal",
"description": "The full current goal block, or `null` to clear."
},
"sessionId": {
"description": "The owning session.",
"type": "string"
},
"sourceRange": {
"$ref": "#/$defs/SourceRange",
"description": "The durable records this event folded from."
},
"viewCursor": {
"description": "Opaque, strictly monotonic view cursor.",
"type": "string"
}
},
"required": [
"sessionId",
"sourceRange",
"viewCursor"
],
"type": "object"
}