From e64868c856ebba83c65c95aa14b6a1dd9ab64456 Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Fri, 7 Nov 2025 19:10:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(chatter):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=86=97=E4=BD=99=E7=9A=84=E7=A7=81=E8=81=8A/=E7=BE=A4?= =?UTF-8?q?=E8=81=8A=E6=80=BB=E5=BC=80=E5=85=B3=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主动思考功能的启用/禁用逻辑现在完全由黑白名单机制控制。移除原有的全局开关可以简化配置项,并使调度器中的判断逻辑更加清晰。 --- .../proactive/proactive_thinking_scheduler.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/built_in/affinity_flow_chatter/proactive/proactive_thinking_scheduler.py b/src/plugins/built_in/affinity_flow_chatter/proactive/proactive_thinking_scheduler.py index 23c003928..5a7d62a62 100644 --- a/src/plugins/built_in/affinity_flow_chatter/proactive/proactive_thinking_scheduler.py +++ b/src/plugins/built_in/affinity_flow_chatter/proactive/proactive_thinking_scheduler.py @@ -92,12 +92,6 @@ class ProactiveThinkingScheduler: is_private = parts[2] == "private" - # 检查基础开关 - if is_private and not self.config.enable_in_private: - return False - if not is_private and not self.config.enable_in_group: - return False - # 黑名单检查(优先级高) if self.config.blacklist_mode: blacklist = self.config.blacklist_private if is_private else self.config.blacklist_group