refactor(chat): 调整消息选择的优先级
在确定 `action_message` 时,优先使用 `target_message` 而不是 `message_data`。 这一变更优化了消息处理流程,确保在存在明确的目标消息时,系统能够正确地选择它,从而避免了潜在的逻辑冲突,使行为更加符合预期。 Co-authored-by: 雅诺狐 <212194964+foxcyber907@users.noreply.github.com> Co-authored-by: tt-P607 <68868379+tt-P607@users.noreply.github.com>
This commit is contained in:
@@ -644,7 +644,7 @@ class HeartFChatting:
|
||||
else:
|
||||
logger.warning(f"{self.log_prefix} 预生成的回复任务未生成有效内容")
|
||||
|
||||
action_message = message_data or target_message
|
||||
action_message = target_message or message_data
|
||||
if action_type == "reply":
|
||||
# 等待回复生成完毕
|
||||
if self.loop_mode == ChatMode.NORMAL:
|
||||
|
||||
Reference in New Issue
Block a user