From d971afb934d37f2ad2b5b901c3c3273774de4dca Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Apr 2026 21:08:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20recall/commit/anchor=20=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E4=B9=9F=E5=9C=A8=20WebUI=20=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E5=B9=B6=E6=8B=89=E9=95=9C=E5=A4=B4?= 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 afeb2b8..3120a7f 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']) - # 检查是否有新创建的节点 - if record.get('action') == 'create' and entity_name: + # 检查是否有新创建或 recall 的节点,用于拉镜头 + if record.get('action') in ('create', 'recall', 'commit', 'anchor') and entity_name: cursor = graph_db.conn.cursor() cursor.execute("SELECT id FROM entities WHERE name = ?", (entity_name,)) row = cursor.fetchone()