codex approvals (#993)

* codex approvals

* send deny feedback

* Normalize user-feedback

* use tool call id to match normalized_entry

* store approvals in executor

* add noop approval for api consistency

---------

Co-authored-by: Gabriel Gordon-Hall <ggordonhall@gmail.com>
This commit is contained in:
Solomon
2025-10-20 18:02:58 +01:00
committed by GitHub
parent ee68b2fc43
commit 62834ea581
21 changed files with 942 additions and 139 deletions

View File

@@ -25,6 +25,38 @@
null
]
},
"ask_for_approval": {
"anyOf": [
{
"description": "Determines when the user is consulted to approve Codex actions.",
"oneOf": [
{
"description": "Read-only commands are auto-approved. Everything else will ask the user to approve.",
"type": "string",
"const": "unless-trusted"
},
{
"description": "All commands run in a restricted sandbox initially.\nIf the command fails, the user is asked to approve execution without the sandbox.",
"type": "string",
"const": "on-failure"
},
{
"description": "The model decides when to ask the user for approval.",
"type": "string",
"const": "on-request"
},
{
"description": "Never ask the user to approve commands. Commands that fail in the restricted sandbox will not be retried.",
"type": "string",
"const": "never"
}
]
},
{
"type": "null"
}
]
},
"oss": {
"type": [
"boolean",