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
fix(memory-core): trigger verified reindex on missing-meta recovery
When identity is missing but indexed chunks exist, force a verified full
reindex via runSafeReindex/runUnsafeReindex instead of returning with a
dirty/paused index. The reindex path prunes stale chunks from deleted
paths, old providers, or old scopes before writing meta, so the index
does not become searchable with unverified memory rows.
Guard: when a specific embedding provider is configured but currently
unavailable, the recovery path leaves the index dirty/paused instead of
forcing an FTS-only reindex that would wipe existing vector embeddings.
For auto/none/unset providers or when the provider is available, the
verified full reindex proceeds safely.
Adds three regression tests:
- triggers verified reindex when identity missing + chunks exist
- prunes stale chunks from deleted paths during recovery
- preserves index when specific provider is unavailable
Closes#90338
Co-Authored-By: Claude Opus 4.8 <[email protected]>
0 commit comments