feat(distribution_manager): 在处理成功后添加短暂等待,确保清理操作完成

feat(message_manager): 简化清除未读消息逻辑,移除冗余注释
feat(action_manager): 移除自动清空未读消息的逻辑,改为手动处理
feat(plan_executor): 扩展回复类动作的分类,包含 respond 动作
This commit is contained in:
Windpicker-owo
2025-11-10 21:38:55 +08:00
parent c46df81bca
commit f3af3caf71
5 changed files with 16 additions and 86 deletions

View File

@@ -78,8 +78,9 @@ class ChatterPlanExecutor:
other_actions = []
# 分类动作:回复动作和其他动作
# 回复类动作包括reply, proactive_reply, respond
for action_info in plan.decided_actions:
if action_info.action_type in ["reply", "proactive_reply"]:
if action_info.action_type in ["reply", "proactive_reply", "respond"]:
reply_actions.append(action_info)
else:
other_actions.append(action_info)

View File

@@ -363,9 +363,6 @@ class ChatterPlanFilter:
stream_context = chat_stream.context_manager
# 🔥 确保历史消息已从数据库加载
await stream_context.ensure_history_initialized()
# 获取真正的已读和未读消息
read_messages = stream_context.context.history_messages # 已读消息存储在history_messages中
if not read_messages: