mirror of
https://github.com/openai/codex.git
synced 2026-04-25 23:24:55 +00:00
Add initialize-time server request capabilities so app-server only sends conversational permission confirmation requests to clients that advertise support. Unsupported clients still fail closed without changing permissions, while capable clients receive the existing request/response flow for narrow grants and preset picker requests.
37 lines
876 B
JSON
37 lines
876 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"PermissionPresetApprovalDecision": {
|
|
"enum": [
|
|
"accepted",
|
|
"declined"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"PermissionPresetId": {
|
|
"description": "A built-in permission-mode preset that app clients can confirm.",
|
|
"enum": [
|
|
"auto",
|
|
"full-access",
|
|
"read-only",
|
|
"guardian-approvals"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"description": "Response from an app client after the permission preset picker resolves.",
|
|
"properties": {
|
|
"decision": {
|
|
"$ref": "#/definitions/PermissionPresetApprovalDecision"
|
|
},
|
|
"preset": {
|
|
"$ref": "#/definitions/PermissionPresetId"
|
|
}
|
|
},
|
|
"required": [
|
|
"decision",
|
|
"preset"
|
|
],
|
|
"title": "PermissionPresetRequestApprovalResponse",
|
|
"type": "object"
|
|
} |