SurfSense/surfsense_web/features/chat-messages/hitl
CREDO23 1f1b6c5425 hitl/generic-approval: drop client-side MCP gate, dispatch approve_always
The 'Always Allow' button is now driven entirely by the server-supplied
allowed_decisions palette. The card no longer peeks at
context.mcp_connector_id to decide whether to render the button, and no
longer fires a separate trust-tool HTTP call on click - one
{type: 'approve_always'} dispatch is enough; the agent middleware
handles the in-memory promotion and (for MCP tools) the database save
via its trusted_tool_saver callback.

Drops the dead trustMCPTool / untrustMCPTool service helpers - they had
no remaining callers after this rework. The backing HTTP routes are
kept on the server as a programmatic surface.
2026-05-15 14:59:45 +02:00
..
approval chat-messages: render and batch-submit multiple HITL approval cards 2026-05-13 21:00:01 +02:00
approval-cards hitl/generic-approval: drop client-side MCP gate, dispatch approve_always 2026-05-15 14:59:45 +02:00
edit-panel chat-messages: add hitl module with types, hooks, bundle, approval cards, and edit panel. 2026-05-09 18:31:23 +02:00
index.ts chat: unify HITL approval UX behind a single paginated card and harden timeline supersede. 2026-05-09 21:44:54 +02:00
types.ts hitl/wire: rename 'always' decision-type to 'approve_always' 2026-05-15 14:47:32 +02:00
use-hitl-decision.ts chat: unify HITL approval UX behind a single paginated card and harden timeline supersede. 2026-05-09 21:44:54 +02:00
use-hitl-phase.ts chat-messages: add hitl module with types, hooks, bundle, approval cards, and edit panel. 2026-05-09 18:31:23 +02:00