fix: block leaked history content before outbound send

This commit is contained in:
2026-03-08 12:36:57 +08:00
parent 613d375845
commit 5a5bde1ba5
2 changed files with 43 additions and 0 deletions

View File

@@ -366,6 +366,8 @@ class SystemOrchestrator:
async def handle_outbound_event(self, user_id: str, platform: str, response: StandardResponse):
if platform == "qianniu":
if response and response.msg_type == 0:
response.reply_content = self._sanitize_outbound_text(response.reply_content)
await self.qianniu_adapter.translate_outbound(response, user_id)
# 全局单例