From c05949d1cfacc6c0388c432d536a7a6a5ef9ebb1 Mon Sep 17 00:00:00 2001 From: ymq Date: Sat, 15 Aug 2026 09:39:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pipeline=5Fid=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?fallback=E5=88=B0=E9=BB=98=E8=AE=A4=E4=BA=A7=E7=BA=BF=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=A7=E7=BA=BFslash=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E4=B8=8D=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/agent_loop_v2.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pipeline_service/agent_loop_v2.py b/pipeline_service/agent_loop_v2.py index ac0010d..9b29f57 100644 --- a/pipeline_service/agent_loop_v2.py +++ b/pipeline_service/agent_loop_v2.py @@ -333,6 +333,14 @@ class AgentExecutor: except Exception: pass + # pipeline_id 为空时 fallback 到默认产线(保证 slash/ability/skill 统一按产线挂载) + if not self.pipeline_id: + try: + from pipeline_core import DEFAULT_ABILITY_ID + self.pipeline_id = DEFAULT_ABILITY_ID + except ImportError: + pass + async def _build_system_prompt(self, user_input: str) -> str: """组装完整 system prompt = 基础 prompt + 记忆 + 技能 + 工具列表""" prompt = self.config.system_prompt