mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
Add explicit command approval purpose
This commit is contained in:
@@ -342,6 +342,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"CommandExecutionApprovalPurpose": {
|
||||
"enum": [
|
||||
"initial",
|
||||
"execve",
|
||||
"sandboxRetry"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"CommandExecutionRequestApprovalParams": {
|
||||
"properties": {
|
||||
"approvalId": {
|
||||
@@ -351,6 +359,17 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"approvalPurpose": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/CommandExecutionApprovalPurpose"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Semantic purpose of this approval request. Compatibility events may omit it."
|
||||
},
|
||||
"command": {
|
||||
"description": "The command to be executed.",
|
||||
"type": [
|
||||
|
||||
Reference in New Issue
Block a user