From 969d42832000f5011caf6bed9825b771ec957fa0 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Wed, 18 Mar 2026 14:03:06 +0800 Subject: [PATCH] fix(web): agent add tools bugfix --- .../ApplicationConfig/components/ToolList/ToolList.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/views/ApplicationConfig/components/ToolList/ToolList.tsx b/web/src/views/ApplicationConfig/components/ToolList/ToolList.tsx index c93bc3e3..5ce84554 100644 --- a/web/src/views/ApplicationConfig/components/ToolList/ToolList.tsx +++ b/web/src/views/ApplicationConfig/components/ToolList/ToolList.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:26:03 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-17 15:53:06 + * @Last Modified time: 2026-03-18 14:01:13 */ /** * Tool List Component @@ -107,7 +107,10 @@ const ToolList: FC<{ value?: ToolOption[]; onChange?: (config: ToolOption[]) => } /** Add new tool to list */ const updateTools = (tool: ToolOption) => { - const list = [...toolList, tool] + const list = [...toolList, { + ...tool, + is_active: true, + }] setToolList(list) onChange && onChange(list) }