Skip to content
Developer Preview

session/approvalModeChanged

The approval enforcement mode changed: the fold of the durable reconfigure audit fact.

Type: 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.

Field Type Stability Presence Description
clientName string required The requesting client’s clientInfo.name, recorded on the audit fact.
commandId string required The command that changed it.
mode ApprovalMode required The mode now in effect.
sessionId string required The owning session.
source ApprovalModeSource required How the mode took effect.
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~2FapprovalModeChanged

{
"description": "The approval enforcement mode changed: the fold of the durable reconfigure audit fact.",
"params": {
"$ref": "#/$defs/SessionApprovalModeChangedParams"
}
}