fix(loop): persist subagent follow-up events in history

This commit is contained in:
xzq.xu
2026-04-18 13:30:22 +08:00
committed by Xubin Ren
parent c27b4d07c4
commit 1c939e8a5f
3 changed files with 170 additions and 1 deletions
+4
View File
@@ -246,6 +246,10 @@ class SubagentManager:
sender_id="subagent",
chat_id=f"{origin['channel']}:{origin['chat_id']}",
content=announce_content,
metadata={
"injected_event": "subagent_result",
"subagent_task_id": task_id,
},
)
await self.bus.publish_inbound(msg)