SurfSense/surfsense_backend/tests/unit/agents/multi_agent_chat
CREDO23 98b6977c68 permissions/ask: gate 'approve_always' palette entry on MCP-ness
Only MCP tools have a persistence target for 'approve_always' (the
connector's trusted-tools list); for native tools the decision lives
only in the in-memory runtime ruleset. Reflect that in the wire palette
so the FE can stay a pure renderer of allowed_decisions instead of
peeking at context.mcp_connector_id to decide whether to show the
'Always Allow' button.

The backend still accepts an 'approve_always' reply for any tool kind
(in-memory promotion is harmless), it just doesn't advertise it when
there's nowhere to persist.
2026-05-15 14:54:16 +02:00
..
middleware permissions/ask: gate 'approve_always' palette entry on MCP-ness 2026-05-15 14:54:16 +02:00
subagents hitl/wire: rename 'always' decision-type to 'approve_always' 2026-05-15 14:47:32 +02:00
__init__.py test(hitl): regression net for surfsense_resume_value pop-on-read 2026-05-05 17:04:19 +02:00