Files
codex/codex-rs/app-server-protocol/schema/json/PermissionPresetRequestApprovalResponse.json
Felipe Coury 13bdd524f2 feat(tui): open permission picker for conversational requests
Add a `request_permission_preset` tool that lets the model route user
requests for sandbox or approval mode changes into the existing picker.
The picker opens with the requested preset selected and reports the final
user choice back to the active turn.

Wire the request through protocol, app-server, core, tools, and TUI
handling so accepted picker choices update the effective permissions while
Full Access still uses the existing confirmation flow.
2026-04-12 19:59:14 -03:00

35 lines
695 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"PermissionPresetApprovalDecision": {
"enum": [
"accepted",
"declined"
],
"type": "string"
},
"PermissionPresetId": {
"enum": [
"auto",
"full-access",
"read-only",
"guardian-approvals"
],
"type": "string"
}
},
"properties": {
"decision": {
"$ref": "#/definitions/PermissionPresetApprovalDecision"
},
"preset": {
"$ref": "#/definitions/PermissionPresetId"
}
},
"required": [
"decision",
"preset"
],
"title": "PermissionPresetRequestApprovalResponse",
"type": "object"
}