fix:非提及不回复

This commit is contained in:
SengokuCola
2025-11-09 20:44:00 +08:00
parent 9191756412
commit acf316281b
2 changed files with 37 additions and 27 deletions

View File

@@ -518,8 +518,9 @@ class HeartFChatting:
)
reply_result = None
# 过滤掉planner返回的reply动作如果存在
action_to_use_info = [action for action in action_to_use_info if action.action_type != "reply"]
# 只在提及情况下过滤掉planner返回的reply动作提及时已有独立回复生成
if force_reply_message:
action_to_use_info = [action for action in action_to_use_info if action.action_type != "reply"]
logger.info(
f"{self.log_prefix} 决定执行{len(action_to_use_info)}个动作: {' '.join([a.action_type for a in action_to_use_info])}"