From 5df15c60ffe1e078ef532d25a3d2f4634a4aff19 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 5 Jan 2026 11:01:18 +0800 Subject: [PATCH] fix --- .../pipeline/process_stage/method/agent_sub_stages/internal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py index 9c1c1c9a9..984b8f9bf 100644 --- a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +++ b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py @@ -76,6 +76,8 @@ class InternalAgentSubStage(Stage): max(1, settings["dequeue_context_length"]), self.max_context_length - 1, ) + if self.dequeue_context_length <= 0: + self.dequeue_context_length = 1 self.conv_manager = ctx.plugin_manager.context.conversation_manager