mirror of
https://github.com/openai/codex.git
synced 2026-04-25 15:15:15 +00:00
Support addDirectories in PermissionRequest hooks
Add hook schema and runtime support for decision.addDirectories, persist writable roots by destination, and reuse granted roots in later shell approvals. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -13,6 +13,24 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"PermissionDirectoryUpdate": {
|
||||
"properties": {
|
||||
"destination": {
|
||||
"$ref": "#/definitions/PermissionSuggestionDestination"
|
||||
},
|
||||
"directories": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"destination",
|
||||
"directories"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"PermissionRequestBehaviorWire": {
|
||||
"enum": [
|
||||
"allow",
|
||||
@@ -23,6 +41,13 @@
|
||||
"PermissionRequestDecisionWire": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"addDirectories": {
|
||||
"default": null,
|
||||
"items": {
|
||||
"$ref": "#/definitions/PermissionDirectoryUpdate"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"behavior": {
|
||||
"$ref": "#/definitions/PermissionRequestBehaviorWire"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user