From 18906e5ab26455a0a974111e48c23cf78236a290 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 9 Apr 2026 22:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/agent/__init__.py b/app/agent/__init__.py index cb0e3e00..7a709e08 100644 --- a/app/agent/__init__.py +++ b/app/agent/__init__.py @@ -138,7 +138,7 @@ class MoviePilotAgent: """ 是否为后台任务模式(无渠道信息,如定时唤醒) """ - return not self.channel and not self.source + return not self.channel or not self.source def _should_stream(self) -> bool: """ @@ -151,8 +151,6 @@ class MoviePilotAgent: """ if self.is_background: return False - if not self.channel: - return False # 啰嗦模式下始终需要流式输出来捕获工具调用前的 Agent 文字 if settings.AI_AGENT_VERBOSE: return True