mirror of
https://github.com/openai/codex.git
synced 2026-04-25 23:24:55 +00:00
feat(tui): preselect scoped permission requests
Enable `request_permissions_tool` by default and add a scope hint so conversational requests for named paths can open the permissions UI with the requested duration selected. Thread the suggested scope through protocol, core, app-server, and TUI handling so broad mode changes still use the preset picker while narrow filesystem and network grants use the granular permissions flow.
This commit is contained in:
@@ -1409,6 +1409,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"PermissionGrantScope": {
|
||||
"enum": [
|
||||
"turn",
|
||||
"session"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"PermissionPresetId": {
|
||||
"enum": [
|
||||
"auto",
|
||||
@@ -1481,6 +1488,14 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"suggestedScope": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/PermissionGrantScope"
|
||||
}
|
||||
],
|
||||
"default": "turn"
|
||||
},
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user