From eab18889ff6ebd9850f09f9c9b30ed97ddaf16f4 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Apr 2026 21:12:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=99=A4=20delete=20=E5=A4=96=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=93=8D=E4=BD=9C=E9=83=BD=E6=8B=89=E9=95=9C=E5=A4=B4?= =?UTF-8?q?=EF=BC=88query/create/update=20=E7=AD=89=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/web_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/web_api.py b/core/web_api.py index 3120a7f..42e6d3b 100644 --- a/core/web_api.py +++ b/core/web_api.py @@ -695,8 +695,8 @@ def get_graph_highlight(): if row: highlight_ids.append(row['id']) - # 检查是否有新创建或 recall 的节点,用于拉镜头 - if record.get('action') in ('create', 'recall', 'commit', 'anchor') and entity_name: + # 除删除外,所有操作都拉镜头(create/recall/query/update/archive 等) + if record.get('action') != 'delete' and entity_name: cursor = graph_db.conn.cursor() cursor.execute("SELECT id FROM entities WHERE name = ?", (entity_name,)) row = cursor.fetchone()