From ab4de04648a3e17ee7aaa1ca889a2ffc09c548e8 Mon Sep 17 00:00:00 2001 From: Wei Chengqian Date: Sun, 12 Jul 2026 16:04:50 +0800 Subject: [PATCH] fix: exempt WebChat from friend wake prefix (#9215) --- astrbot/core/pipeline/waking_check/stage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astrbot/core/pipeline/waking_check/stage.py b/astrbot/core/pipeline/waking_check/stage.py index ddc2a6cb8..bf6c359ad 100644 --- a/astrbot/core/pipeline/waking_check/stage.py +++ b/astrbot/core/pipeline/waking_check/stage.py @@ -138,7 +138,10 @@ class WakingCheckStage(Stage): event.is_at_or_wake_command = True break # 检查是否是私聊 - if event.is_private_chat() and not self.friend_message_needs_wake_prefix: + if event.is_private_chat() and ( + not self.friend_message_needs_wake_prefix + or event.get_platform_name() == "webchat" + ): is_wake = True event.is_wake = True event.is_at_or_wake_command = True