我是打日志先人

This commit is contained in:
minecraft1024a
2025-09-24 16:53:44 +08:00
parent c7f8760b2d
commit 62ba8c3bfb
3 changed files with 9 additions and 0 deletions

View File

@@ -434,6 +434,8 @@ class ChatterActionManager:
# 根据新消息数量决定是否需要引用回复
reply_text = ""
is_proactive_thinking = (message_data.get("message_type") == "proactive_thinking") if message_data else True
logger.debug(f"[send_response] message_data: {message_data}")
first_replied = False
for reply_seg in reply_set:

View File

@@ -189,6 +189,7 @@ async def _send_to_target(
# 处理回复消息
if reply_to_message:
logger.info(f"[_send_to_target] reply_to_message: {reply_to_message}")
anchor_message = message_dict_to_message_recv(message_dict=reply_to_message)
anchor_message.update_chat_stream(target_stream)
reply_to_platform_id = (

View File

@@ -467,6 +467,12 @@ class ChatterPlanFilter:
real_message_id = target_message_dict.get("message_id") or target_message_dict.get("id")
if real_message_id:
action_data["target_message_id"] = real_message_id
# 确保 action_message 中始终有 message_id 字段
if "message_id" not in target_message_obj and "id" in target_message_obj:
target_message_obj["message_id"] = target_message_obj["id"]
logger.info(f"[_parse_single_action] target_message_obj: {target_message_obj}")
else:
# 如果找不到目标消息对于reply动作来说这是必需的应该记录警告
if action == "reply":