From 2f6b9396e158ce6b6b424c21b4e5c89d710e32de Mon Sep 17 00:00:00 2001 From: ymq Date: Sat, 5 Sep 2026 21:25:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(agent):=20=5Fbuild=5Fctx=E6=B3=A8=E5=85=A5?= =?UTF-8?q?session=5Fid=E2=80=94=E2=80=94=E8=83=BD=E5=8A=9Bhandler?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E7=BA=A7=E9=9A=94=E7=A6=BB=E9=94=AE(extract?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=E9=94=9A=E5=AE=9A=E9=98=B2=E8=B7=A8=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E4=B8=B2=E6=95=B0=E6=8D=AE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/agent_loop_v2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipeline_service/agent_loop_v2.py b/pipeline_service/agent_loop_v2.py index 22e4c98..c255a8d 100644 --- a/pipeline_service/agent_loop_v2.py +++ b/pipeline_service/agent_loop_v2.py @@ -773,6 +773,9 @@ class AgentExecutor: "workspace_dir": self.workspace_dir, "model_name": self.model_name, "config": self.config, + # 会话级隔离键(2026-09-05):能力 handler 的会话态缓存(如 extract 规格锚定) + # 必须按 session_id 隔离,防跨会话串数据 + "session_id": self.session_id, } def _build_slash_ctx(self) -> dict: