From 87f9ab7bb4a27826d7d6d69f2a1f4b7f6a645fc0 Mon Sep 17 00:00:00 2001 From: wengzh <107969742+milieyo@users.noreply.github.com> Date: Tue, 24 Mar 2026 11:05:35 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=E4=BF=AE=E5=A4=8D=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E4=BD=93=E8=AE=B0=E5=BF=86=E6=A8=A1=E5=9E=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=98=E6=9B=B4=E6=97=B6=E9=94=99=E8=AF=AF=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=8E=86=E5=8F=B2=E8=81=8A=E5=A4=A9=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaozhi/modules/agent/service/impl/AgentServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java index 746330ca..22029ec5 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java @@ -410,6 +410,9 @@ public class AgentServiceImpl extends BaseServiceImpl imp // 删除所有记录 agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, true); existingEntity.setSummaryMemory(""); + } else if (existingEntity.getChatHistoryConf() != null && existingEntity.getChatHistoryConf() == 1) { + // 删除音频数据 + agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, false); } // 更新上下文源配置