Skip to content
Developer Preview

SessionForkParams

session/fork params.

  • approvalRules — Experimental
  • commandId
  • cutPoint
  • excludeItems
  • sessionId
Source

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

{
"description": "`session/fork` params.",
"properties": {
"approvalRules": {
"description": "Client-supplied shell prefix allow-rules override: omitted inherits the source session's rules,\npresent replaces with that set (an explicit empty array clears).\nExplicit `null` is invalid params. Until the served-handler slice, a\nhost refuses any spelled `approvalRules` on\n`session/start`/`fork`/`resume` with `-32602`; clients omit it.\n**Experimental**\n(`session/fork.approvalRules`).",
"items": {
"$ref": "#/$defs/ClientApprovalRule"
},
"type": "array",
"x-msp-descriptor": "session/fork.approvalRules",
"x-msp-stability": "experimental"
},
"commandId": {
"description": "The idempotency handle (UUIDv7).",
"type": "string"
},
"cutPoint": {
"$ref": "#/$defs/ForkCutPoint",
"description": "Copy history through a completed turn, inclusive. Omitted means \"all\ncompleted turns\"."
},
"excludeItems": {
"description": "Skip inline history in the result and page it later — same as\n`session/resume`.",
"type": "boolean"
},
"sessionId": {
"description": "The source session.",
"type": "string"
}
},
"required": [
"commandId",
"sessionId"
],
"type": "object"
}