fix:修复在auto模式下,私聊会转为normal的bug

This commit is contained in:
SengokuCola
2025-07-05 23:39:19 +08:00
parent e0ce27f745
commit f67192de83
3 changed files with 16 additions and 1 deletions

View File

@@ -307,6 +307,15 @@ class HeartFChatting:
if loop_info["loop_action_info"]["command"] == "stop_focus_chat":
logger.info(f"{self.log_prefix} 麦麦决定停止专注聊天")
# 如果是私聊,则不停止,而是重置疲劳度并继续
if not self.chat_stream.group_info:
logger.info(
f"{self.log_prefix} 私聊模式下收到停止请求,不退出。"
)
continue # 继续下一次循环,而不是退出
# 如果是群聊,则执行原来的停止逻辑
# 如果设置了回调函数,则调用它
if self.on_stop_focus_chat:
try: