fix(approval): keep approve-allow one-shot for pending requests
Route /approve-allow through a runtime-only pending-request path so it does not persist approval policy changes for normal tools. This preserves always_ask semantics for Telegram inline HITL approvals while keeping /approve and /approve-request + /approve-confirm as the persistent approval flows. Update docs and regression assertions accordingly.
This commit is contained in:
committed by
Argenis
parent
c5d84ebc59
commit
fa2f902259
@@ -191,6 +191,8 @@ Runtime in-chat commands while channel server is running:
|
||||
- Supervised tool approvals (all non-CLI channels):
|
||||
- `/approve-request <tool-name>` (create pending approval request)
|
||||
- `/approve-confirm <request-id>` (confirm pending request; same sender + same chat/channel only)
|
||||
- `/approve-allow <request-id>` (approve current pending runtime execution request once; no policy persistence)
|
||||
- `/approve-deny <request-id>` (deny current pending runtime execution request)
|
||||
- `/approve-pending` (list pending requests in current sender+chat/channel scope)
|
||||
- `/approve <tool-name>` (direct one-step grant + persist to `autonomy.auto_approve`, compatibility path)
|
||||
- `/unapprove <tool-name>` (revoke + remove from `autonomy.auto_approve`)
|
||||
|
||||
Reference in New Issue
Block a user