perf: 分段回复时,仅在输出的第一句话带上回复/引用

fixes: #521
This commit is contained in:
Soulter
2025-06-11 00:06:14 +08:00
parent 422160debd
commit f56355da89
+1
View File
@@ -191,6 +191,7 @@ class RespondStage(Stage):
await asyncio.sleep(i)
try:
await event.send(MessageChain([*decorated_comps, comp]))
decorated_comps = [] # 清空已发送的装饰组件
except Exception as e:
logger.error(f"发送消息失败: {e} chain: {result.chain}")
break