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,