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

@@ -1,5 +1,11 @@
# Changelog
## [0.8.2] - 2025-7-5
优化和修复:
- 修复在auto模式下私聊会转为normal的bug
## [0.8.1] - 2025-7-5
功能更新:

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:

View File

@@ -50,7 +50,7 @@ TEMPLATE_DIR = os.path.join(PROJECT_ROOT, "template")
# 考虑到实际上配置文件中的mai_version是不会自动更新的,所以采用硬编码
# 对该字段的更新请严格参照语义化版本规范https://semver.org/lang/zh-CN/
MMC_VERSION = "0.8.1"
MMC_VERSION = "0.8.2-snapshot.1"
def update_config():