mirror of
https://github.com/openai/codex.git
synced 2026-04-25 15:15:15 +00:00
feat(app-server): gate permission confirmations by capability
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.
This commit is contained in:
@@ -5347,6 +5347,16 @@
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"supportedServerRequests": {
|
||||
"description": "Server request methods this connection knows how to render and answer.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SupportedServerRequestMethod"
|
||||
},
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -10257,6 +10267,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"SupportedServerRequestMethod": {
|
||||
"description": "Server-initiated request methods a client can opt into during initialize.",
|
||||
"enum": [
|
||||
"item/permissions/requestApproval",
|
||||
"item/permissionPreset/requestApproval"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"TerminalInteractionNotification": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user