mirror of
https://github.com/openai/codex.git
synced 2026-04-25 07:05:38 +00:00
Clean up permission request approval flow
Replace stringly approval-attempt plumbing with a shared enum, centralize approval decision handling in the orchestrator, and document plus test the reserved PermissionRequest output fields. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -72,6 +72,13 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PermissionRequestApprovalAttempt": {
|
||||
"enum": [
|
||||
"initial",
|
||||
"retry"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"PermissionRequestApprovalContext": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -79,11 +86,7 @@
|
||||
"$ref": "#/definitions/PermissionProfile"
|
||||
},
|
||||
"approval_attempt": {
|
||||
"enum": [
|
||||
"initial",
|
||||
"retry"
|
||||
],
|
||||
"type": "string"
|
||||
"$ref": "#/definitions/PermissionRequestApprovalAttempt"
|
||||
},
|
||||
"justification": {
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user