From af35fe54390cd068658daa2dbde89bb1c7a81170 Mon Sep 17 00:00:00 2001 From: "lia-by-librechat[bot]" <328778573+lia-by-librechat[bot]@users.noreply.github.com> Date: Sun, 4 Oct 2026 17:36:13 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9A=20chore:=20Deprecate=20Agent=20Cha?= =?UTF-8?q?in=20Authoring=20(#16745)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: consolidate orchestration into a native tool * test: complete persisted subagent graph fixture * fix: keep orchestration pickers inside the modal focus scope * chore: deprecate agent chain authoring * fix: preserve runtime-equivalent legacy handoff classification * test: stabilize orchestration dialog lifecycle coverage * test: wait for stream completion before final title polling --------- Co-authored-by: Lia --- .../services/__tests__/ToolService.spec.js | 2 +- .../Agents/Advanced/AdvancedPanel.tsx | 6 +- .../SidePanel/Agents/Advanced/AgentChain.tsx | 126 ++++-------------- .../Advanced/__tests__/AgentChain.spec.tsx | 54 ++++++++ .../__tests__/AgentPanel.helpers.spec.ts | 10 ++ client/src/locales/en/translation.json | 7 +- .../mock/conversation-management.spec.ts | 5 + librechat.example.yaml | 2 +- packages/data-provider/src/chain.spec.ts | 8 ++ packages/data-provider/src/config.ts | 2 +- 10 files changed, 109 insertions(+), 113 deletions(-) create mode 100644 client/src/components/SidePanel/Agents/Advanced/__tests__/AgentChain.spec.tsx create mode 100644 packages/data-provider/src/chain.spec.ts diff --git a/api/server/services/__tests__/ToolService.spec.js b/api/server/services/__tests__/ToolService.spec.js index 52cf1798b7..c4df4cb7bd 100644 --- a/api/server/services/__tests__/ToolService.spec.js +++ b/api/server/services/__tests__/ToolService.spec.js @@ -3888,7 +3888,7 @@ describe('ToolService - Action Capability Gating', () => { expect(defaultAgentCapabilities).toContain(AgentCapabilities.context); expect(defaultAgentCapabilities).toContain(AgentCapabilities.ask_user_question); expect(defaultAgentCapabilities).toContain(AgentCapabilities.tools); - expect(defaultAgentCapabilities).toContain(AgentCapabilities.chain); + expect(defaultAgentCapabilities).not.toContain(AgentCapabilities.chain); expect(defaultAgentCapabilities).toContain(AgentCapabilities.ocr); }); }); diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx index 8729543a84..417ba2117d 100644 --- a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx +++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx @@ -1,6 +1,5 @@ import { useState } from 'react'; import { ChevronLeft, Check, Copy } from 'lucide-react'; -import { AgentCapabilities } from 'librechat-data-provider'; import { Controller, useFormContext } from 'react-hook-form'; import { Button, TooltipAnchor, labelVariants, useToastContext } from '@librechat/client'; import type { AgentForm } from '~/common'; @@ -16,9 +15,10 @@ export default function AdvancedPanel() { const { showToast } = useToastContext(); const { watch, control } = useFormContext(); const currentAgentId = watch('id'); + const chainIds = watch('agent_ids'); const [copied, setCopied] = useState(false); - const { setActivePanel, agentsConfig } = useAgentPanelContext(); + const { setActivePanel } = useAgentPanelContext(); const handleCopyAgentId = async () => { if (!currentAgentId) return; @@ -59,7 +59,7 @@ export default function AdvancedPanel() { - {agentsConfig?.capabilities.includes(AgentCapabilities.chain) && ( + {(chainIds?.length ?? 0) > 0 && ( ( -