Commit Graph

3 Commits

Author SHA1 Message Date
Felipe Coury
39474c7eab refactor(app-server): simplify permission confirmation flow
Replace the per-method v1 app-server capability with a single
`permissionConfirmations` opt-in. Route both permission request
flows through that capability.

Collapse the separate preset tool feature into
`request_permissions_tool`, and make core apply accepted preset
responses so clients only confirm the user decision.
2026-04-13 19:50:22 -03:00
Felipe Coury
7da6b2e850 feat(app-server): gate permission confirmations by capability
Add initialize-time server request capabilities so app-server only sends conversational permission confirmation requests to clients that advertise support.

Unsupported clients still fail closed without changing permissions, while capable clients receive the existing request/response flow for narrow grants and preset picker requests.
2026-04-12 19:59:15 -03:00
Felipe Coury
13bdd524f2 feat(tui): open permission picker for conversational requests
Add a `request_permission_preset` tool that lets the model route user
requests for sandbox or approval mode changes into the existing picker.
The picker opens with the requested preset selected and reports the final
user choice back to the active turn.

Wire the request through protocol, app-server, core, tools, and TUI
handling so accepted picker choices update the effective permissions while
Full Access still uses the existing confirmation flow.
2026-04-12 19:59:14 -03:00