feat:修复no_reply起始时间,移除normal消息管理器,不再并行生成回复,为focus提供退出方法

This commit is contained in:
SengokuCola
2025-07-12 22:36:08 +08:00
parent 8fae6272bc
commit a549034bbc
6 changed files with 66 additions and 120 deletions

View File

@@ -61,8 +61,8 @@ class NoReplyAction(BaseAction):
count = NoReplyAction._consecutive_count
reason = self.action_data.get("reason", "")
start_time = time.time()
check_interval = 1.0 # 每秒检查一次
start_time = self.action_data.get("loop_start_time", time.time())
check_interval = 0.6 # 每秒检查一次
# 随机生成本次等待需要的新消息数量阈值
exit_message_count_threshold = random.randint(self._min_exit_message_count, self._max_exit_message_count)

View File

@@ -98,7 +98,7 @@ class ReplyAction(BaseAction):
)
# 根据新消息数量决定是否使用reply_to
need_reply = new_message_count >= random.randint(2, 5)
need_reply = new_message_count >= random.randint(2, 4)
logger.info(
f"{self.log_prefix} 从思考到回复,共有{new_message_count}条新消息,{'使用' if need_reply else '不使用'}引用回复"
)