From 7a79d8f9b9e67ce6a6c086503954160e5fc31615 Mon Sep 17 00:00:00 2001 From: bielie Date: Mon, 16 Feb 2026 21:57:22 +0800 Subject: [PATCH] fix(vector): reset fingerprint when clearing vectors --- modules/story-summary/story-summary.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/story-summary/story-summary.js b/modules/story-summary/story-summary.js index 30f29f9..b10ce21 100644 --- a/modules/story-summary/story-summary.js +++ b/modules/story-summary/story-summary.js @@ -615,7 +615,9 @@ async function handleClearVectors() { await clearEventVectors(chatId); await clearAllChunks(chatId); await clearStateVectors(chatId); - await updateMeta(chatId, { lastChunkFloor: -1 }); + // Reset both boundary and fingerprint so next incremental build starts from floor 0 + // without being blocked by stale engine fingerprint mismatch. + await updateMeta(chatId, { lastChunkFloor: -1, fingerprint: null }); await sendVectorStatsToFrame(); await executeSlashCommand('/echo severity=info 向量数据已清除。如需恢复召回功能,请重新点击"生成向量"。'); xbLog.info(MODULE_ID, "向量数据已清除");