From 5ca1093ed93a4e2fe25baa412f03c4b4cd20ea8e Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 7 Sep 2026 22:46:01 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=AB=20feat:=20Enable=20Full=20Access?= =?UTF-8?q?=20for=20BYOM=20Coding=20(#15718)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Enable Full Access for BYOM Coding 🛫 * test: Preserve endpoint policy under Full Access * fix: Gate Full Access on expected root agent metadata --- .../Chat/Input/CodeApprovalMenu.tsx | 19 ++-- .../Input/__tests__/CodeApprovalMenu.spec.tsx | 22 +++++ .../__tests__/useCodeApprovalMode.test.ts | 95 +++++++++++++++++++ .../src/hooks/Agents/useCodeApprovalMode.ts | 46 +++++++-- client/src/locales/en/translation.json | 2 + e2e/byom/README.md | 5 +- e2e/byom/model.cjs | 4 + e2e/byom/native.spec.ts | 21 +++- e2e/byom/run.mjs | 2 +- librechat.example.yaml | 4 + packages/api/src/agents/hitl/byom.spec.ts | 89 +++++++++++++++++ packages/api/src/agents/hitl/byom.ts | 2 + packages/api/src/agents/hitl/runtime.spec.ts | 57 +++++++++++ .../src/endpoints/config/endpoints.spec.ts | 4 +- .../data-provider/src/code/approval.spec.ts | 22 ++++- packages/data-provider/src/code/approval.ts | 3 +- 16 files changed, 368 insertions(+), 29 deletions(-) diff --git a/client/src/components/Chat/Input/CodeApprovalMenu.tsx b/client/src/components/Chat/Input/CodeApprovalMenu.tsx index b82582ddf0..761bbb0895 100644 --- a/client/src/components/Chat/Input/CodeApprovalMenu.tsx +++ b/client/src/components/Chat/Input/CodeApprovalMenu.tsx @@ -1,4 +1,4 @@ -import { ShieldCheck, Hand } from 'lucide-react'; +import { ShieldCheck, ShieldAlert, Hand } from 'lucide-react'; import { Button, DropdownMenu, @@ -32,7 +32,14 @@ export default function CodeApprovalMenu({ const labels: Record = { ask: localize('com_ui_code_approval_ask'), acceptEdits: localize('com_ui_code_approval_accept_edits'), + fullAccess: localize('com_ui_code_approval_full_access'), }; + const descriptions: Record = { + ask: localize('com_ui_code_approval_ask_description'), + acceptEdits: localize('com_ui_code_approval_accept_edits_description'), + fullAccess: localize('com_ui_code_approval_full_access_description'), + }; + const ModeIcon = { ask: Hand, acceptEdits: ShieldCheck, fullAccess: ShieldAlert }[selected]; return ( @@ -46,7 +53,7 @@ export default function CodeApprovalMenu({ className="h-8 gap-1.5 rounded-full px-2 text-text-secondary" data-testid="code-approval-mode" > - {selected === 'ask' ?