From ed2bb4f7fb8117aacc8847ec5d7510f6f92888fd Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Tue, 26 May 2026 10:35:22 -0400 Subject: [PATCH] Add missing imports and clear backlink index Resolve build index regression causing stale backlink data on reindex. --- backend/auth/jwt_handler.py | 1 + backend/indexer.py | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/auth/jwt_handler.py b/backend/auth/jwt_handler.py index e1894ff..0714d9b 100644 --- a/backend/auth/jwt_handler.py +++ b/backend/auth/jwt_handler.py @@ -4,6 +4,7 @@ # Revoked token JTIs persisted to data/revoked_tokens.json. import json +import os import secrets import uuid import time diff --git a/backend/indexer.py b/backend/indexer.py index 5dbbfa7..d783d43 100644 --- a/backend/indexer.py +++ b/backend/indexer.py @@ -332,6 +332,7 @@ async def build_index(progress_callback=None) -> None: index.clear() _file_lookup.clear() path_index.clear() + _backlink_index.clear() _index_generation += 1 if not vault_config: