From a22e0e915f8edd44b6c03d196b1e6c9e1fd85929 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 15 May 2026 15:23:39 +0200 Subject: [PATCH] schemas/new_chat: accept 'approve_always' on the resume HTTP boundary ResumeDecision is the Pydantic gate at the /resume HTTP route. It was the last spot still rejecting the new wire decision-type, so the FE's 'approve_always' dispatch was being 422'd before it could reach the permission middleware that already speaks it. --- surfsense_backend/app/schemas/new_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surfsense_backend/app/schemas/new_chat.py b/surfsense_backend/app/schemas/new_chat.py index c809d6235..c5315cce5 100644 --- a/surfsense_backend/app/schemas/new_chat.py +++ b/surfsense_backend/app/schemas/new_chat.py @@ -395,7 +395,7 @@ class AgentToolInfo(BaseModel): class ResumeDecision(BaseModel): - type: Literal["approve", "edit", "reject"] + type: Literal["approve", "edit", "reject", "approve_always"] edited_action: dict[str, Any] | None = None