mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
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.
44 lines
1.0 KiB
JSON
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"
|
|
} |