mirror of
https://github.com/openai/codex.git
synced 2026-04-27 16:15:09 +00:00
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.
35 lines
695 B
JSON
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"
|
|
} |