SessionApprovalModeChangedParams
session/approvalModeChanged params: the fold of the
durable approval-mode reconfigure audit fact — every accepted change
writes one; a mode flip without an audit fact is a runtime bug by design.
Fields and variants
Section titled “Fields and variants”clientNamecommandIdmodesessionIdsourcesourceRangeviewCursor
Source
schema/msp/experimental/msp.schema.json#/types/SessionApprovalModeChangedParams
{ "description": "`session/approvalModeChanged` params: the fold of the\ndurable approval-mode reconfigure audit fact — every accepted change\nwrites one; a mode flip without an audit fact is a runtime bug by design.", "properties": { "clientName": { "description": "The requesting client's `clientInfo.name`, recorded on\nthe audit fact.", "type": "string" }, "commandId": { "description": "The command that changed it.", "type": "string" }, "mode": { "$ref": "#/$defs/ApprovalMode", "description": "The mode now in effect." }, "sessionId": { "description": "The owning session.", "type": "string" }, "source": { "$ref": "#/$defs/ApprovalModeSource", "description": "How the mode took effect." }, "sourceRange": { "$ref": "#/$defs/SourceRange", "description": "The durable records this event folded from." }, "viewCursor": { "description": "Opaque, strictly monotonic view cursor.", "type": "string" } }, "required": [ "clientName", "commandId", "mode", "sessionId", "source", "sourceRange", "viewCursor" ], "type": "object"}