Commit graph

11 commits

Author SHA1 Message Date
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
CREDO23
c8b756ae8f hitl/wire: rename 'always' decision-type to 'approve_always'
Renames the SurfSense HITL extension decision-type from "always" to
"approve_always" so it sits in the same verb-first family as "approve",
"reject", and "edit". The Python constant is now SURFSENSE_DECISION_APPROVE_ALWAYS;
the wire value, the permission-domain decision_type, and the FE union members
all match (no wire/internal mismatch).

Both the multi_agent_chat permission middleware and the legacy new_chat one
accept the new wire value; the FE types.ts union is updated accordingly.

The "context.always" payload key is intentionally left untouched - it's the
patterns-to-promote field, semantically distinct from the decision type.
2026-05-15 14:47:32 +02:00
CREDO23
1bb9f435e5 chat-messages: render and batch-submit multiple HITL approval cards 2026-05-13 21:00:01 +02:00
CREDO23
5e7d41f3e8 chat-messages: drop feature module architecture doc. 2026-05-09 23:00:18 +02:00
CREDO23
932bf22a34 chat: fix mixed-decision HITL crash and fold resumed assistant messages into the interrupted bubble. 2026-05-09 22:54:07 +02:00
CREDO23
2e132513be chat: unify HITL approval UX behind a single paginated card and harden timeline supersede. 2026-05-09 21:44:54 +02:00
CREDO23
97a7626179 chat-messages: add timeline tool registry with HITL-aware fallback. 2026-05-09 18:31:45 +02:00
CREDO23
48c4df822a chat-messages: add timeline module with builder, grouping, items, and rendering. 2026-05-09 18:31:33 +02:00
CREDO23
9e451a5907 chat-messages: add hitl module with types, hooks, bundle, approval cards, and edit panel. 2026-05-09 18:31:23 +02:00
CREDO23
d9ad9ca5cb chat-messages: refresh feature module architecture doc. 2026-05-09 18:31:16 +02:00
CREDO23
5c1f5edd75 Add chat-messages feature module architecture doc. 2026-05-09 14:39:44 +02:00