From 4766f838a2a6a3e09e66da94bcab3f26eb024de3 Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Fri, 3 Jul 2026 19:32:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=20subagent=20session?= =?UTF-8?q?=20=E9=81=BF=E5=85=8D=E6=B1=A1=E6=9F=93=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit subagent session(id 形如 sub:...)存入 DB 时 channel_name=websocket,会被 list_sessions 查出并显示在前端右上角。SQL 添加 AND id NOT LIKE 'sub:%' 过滤。 --- src/storage/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/mod.rs b/src/storage/mod.rs index 6a5d0f2..c210e35 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -376,6 +376,7 @@ impl SessionStore { FROM sessions WHERE channel_name = ?1 AND deleted_at IS NULL + AND id NOT LIKE 'sub:%' ", );