From f23bfa3c0d239bf0bc62e80ec753544a39c09ebb Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Mon, 18 Aug 2025 17:01:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(agent):=20=E5=9C=A8=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=89=8D=E5=81=9C=E6=AD=A2=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加了在调用recognizeCallback之前停止当前会话的逻辑,以避免潜在的冲突 --- lib/modules/agent/controllers/agent_controller.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/modules/agent/controllers/agent_controller.dart b/lib/modules/agent/controllers/agent_controller.dart index e778b2a5b..0b34ac815 100644 --- a/lib/modules/agent/controllers/agent_controller.dart +++ b/lib/modules/agent/controllers/agent_controller.dart @@ -1076,6 +1076,8 @@ class AgentController extends GetxController { // } try { + await AgentService.stopConversation(); + await AgentService.recognizeCallback(); if (_bluetoothManager.currentDeviceRx.value != null) { // await AgentService.restoreOriginalAudioState();