SurfSense/surfsense_web/features/chat-messages/hitl
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
..
approval chat-messages: render and batch-submit multiple HITL approval cards 2026-05-13 21:00:01 +02:00
approval-cards chat: unify HITL approval UX behind a single paginated card and harden timeline supersede. 2026-05-09 21:44:54 +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