From 5a3cddab0f3cdf25b40cecd78454db4adf487fcf Mon Sep 17 00:00:00 2001 From: zhaoying Date: Thu, 22 Jan 2026 14:25:38 +0800 Subject: [PATCH] fix(web): agent's memory_content convert to number --- web/src/views/ApplicationConfig/Agent.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index 28c96ec0..77e90440 100644 --- a/web/src/views/ApplicationConfig/Agent.tsx +++ b/web/src/views/ApplicationConfig/Agent.tsx @@ -128,7 +128,11 @@ const Agent = forwardRef((_props, ref) => { let allTools = Array.isArray(response.tools) ? response.tools : [] form.setFieldsValue({ ...response, - tools: allTools + tools: allTools, + memory: { + ...response.memory, + memory_content: response.memory?.memory_content ? Number(response.memory?.memory_content) : undefined + } }) setData({ ...response,