You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// src/utils/search-index.ts:554-559constexistingIndex=awaitloadIndex(targetPath);if(existingIndex&&existingIndex.entries.length>5&&entries.length<existingIndex.entries.length*0.5){log.warn(`Index rebuild skipped: new index (${entries.length}) much smaller than existing (${existingIndex.entries.length})`);returnelapsed;}
Fixed by #91: the shrink-guard in `buildIndex` (`src/utils/search-index.ts`) now only skips the rebuild when the new index is completely empty, instead of when it's <50% of the existing size — so legitimate large-scale deletions (the scenario this issue reported) now correctly propagate to the index instead of being silently blocked.
Note: a follow-up risk from this specific fix (the new guard no longer catches partial-failure scenarios that produce a small-but-nonzero index) is tracked separately in #94 — that's a new/different risk, not a reopening of this issue.
Activity
fix(recall): resolve 7 knowledge retrieval bugs (Tencent#79-Tencent#85)
fix(recall): resolve 7 knowledge retrieval bugs (#79-#85) (#91)
jeff-r2026 commentedon Jul 1, 2026
Fixed by #91: the shrink-guard in `buildIndex` (`src/utils/search-index.ts`) now only skips the rebuild when the new index is completely empty, instead of when it's <50% of the existing size — so legitimate large-scale deletions (the scenario this issue reported) now correctly propagate to the index instead of being silently blocked.
Note: a follow-up risk from this specific fix (the new guard no longer catches partial-failure scenarios that produce a small-but-nonzero index) is tracked separately in #94 — that's a new/different risk, not a reopening of this issue.