mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
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.
This commit is contained in:
parent
1f1b6c5425
commit
a22e0e915f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue