From b6bdcc7052499a11244b75be6da6760d6e3ec5e7 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 18 Nov 2025 11:02:46 +0800 Subject: [PATCH] fix: not auther tool in readonly mode --- .../config/agent/agent-tools/index.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx index 3ad5b72f8f..6880a3573a 100644 --- a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx +++ b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx @@ -119,7 +119,7 @@ const AgentTools: FC = () => { } const getProviderShowName = (item: AgentTool) => { const type = item.provider_type - if(type === CollectionType.builtIn) + if (type === CollectionType.builtIn) return item.provider_name.split('/').pop() return item.provider_name } @@ -291,10 +291,14 @@ const AgentTools: FC = () => { }} /> )} {item.notAuthor && ( -