Files
codex/codex-rs/app-server-protocol/schema/json/PermissionPresetRequestApprovalParams.json
Felipe Coury 39474c7eab refactor(app-server): simplify permission confirmation flow
Replace the per-method v1 app-server capability with a single
`permissionConfirmations` opt-in. Route both permission request
flows through that capability.

Collapse the separate preset tool feature into
`request_permissions_tool`, and make core apply accepted preset
responses so clients only confirm the user decision.
2026-04-13 19:50:22 -03:00

44 lines
1.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"PermissionPresetId": {
"description": "A built-in permission-mode preset that app clients can confirm.",
"enum": [
"auto",
"full-access",
"read-only",
"guardian-approvals"
],
"type": "string"
}
},
"description": "Request sent to app clients when a model asks to switch permission modes.\n\nClients should open their local permission picker with the requested preset preselected, allowing the user to accept it or choose a different preset.",
"properties": {
"itemId": {
"type": "string"
},
"preset": {
"$ref": "#/definitions/PermissionPresetId"
},
"reason": {
"type": [
"string",
"null"
]
},
"threadId": {
"type": "string"
},
"turnId": {
"type": "string"
}
},
"required": [
"itemId",
"preset",
"threadId",
"turnId"
],
"title": "PermissionPresetRequestApprovalParams",
"type": "object"
}