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:
Felipe Coury
2026-04-12 15:08:16 -03:00
parent 13bdd524f2
commit afefd3b1b1
22 changed files with 190 additions and 39 deletions

View File

@@ -3359,6 +3359,14 @@
"null"
]
},
"suggestedScope": {
"allOf": [
{
"$ref": "#/definitions/PermissionGrantScope"
}
],
"default": "turn"
},
"threadId": {
"type": "string"
},