fix(confirmations): guarded-action handling across webchat and tui

This commit is contained in:
William Valentin
2026-02-18 17:43:57 -08:00
parent 7e00cb6b04
commit cdba111831
9 changed files with 199 additions and 52 deletions
+9
View File
@@ -167,6 +167,9 @@ Commands:
/queue Show queue policy for this session
/queue set <k> <v> Set queue override (mode/cap/overflow/debounce_ms/summarize_overflow)
/queue reset Clear queue overrides for this session
/approvals List pending guarded actions for this session
/approve [id] Approve latest pending action (or specific id)
/deny [id] [reason] Deny latest pending action (or specific id)
/elevate [args] Show or manage elevated mode
/reset, /clear, /new Clear conversation history
/compact Compact conversation history
@@ -202,6 +205,9 @@ export const SLASH_COMMANDS = [
'/login',
'/pair',
'/queue',
'/approvals',
'/approve',
'/deny',
'/elevate',
'/transfer',
'/quit',
@@ -226,6 +232,9 @@ export const COMMAND_TOOLTIPS: Record<string, string> = {
'/login': 'Authenticate with GitHub/OpenAI/Anthropic (OAuth/token or API key) or Z.AI (API key store)',
'/pair': 'Generate/list/revoke DM pairing codes',
'/queue': 'Show or update per-session queue policy',
'/approvals': 'List pending guarded actions for this session',
'/approve': 'Approve latest pending action (or specific id)',
'/deny': 'Deny latest pending action (or specific id and reason)',
'/elevate': 'Show or manage elevated mode',
'/transfer': 'Transfer session to another frontend (telegram|tui)',
'/quit': 'Exit TUI',