Skip to content

fix(indexer): rebuild semantic index when manifest is missing - #206

Merged
PatrickSys merged 1 commit into
masterfrom
fix/rebuild-missing-manifest-20261205a
Dec 5, 2026
Merged

PatrickSys merged 1 commit into
masterfrom
fix/rebuild-missing-manifest-20261205a

Conversation

@PatrickSys

Copy link
Copy Markdown
Owner

When the active manifest is missing, reindex --incremental copies the old LanceDB and treats every current file as new. Vectors for deleted files and old versions of edited files remain in the index. The next search can trigger another rebuild.

To reproduce, build an embedding index for kept.ts and removed.ts. Delete the active manifest.json identified by .codebase-context/index-meta.json, edit kept.ts, and delete removed.ts. Run reindex --incremental followed by search --query kept --json. On master, reindex exits successfully, but search reports that the index is unavailable and starts recovery.

Use the existing full rebuild path when the previous manifest cannot be read. The regression test checks that the new LanceDB contains only the current source.

Windows, Node 24.14.1. Full suite passed across 168 files with 1,595 tests passed, 2 skipped, and 0 failed. Build, lint, formatting, and type checks passed.

Agent: Codex 01a2446c-d99b-7a31-926f-e8951f6d3841
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T05:03:52.132106Z 1a9403e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge.

Summary

When the previous manifest cannot be read, incremental indexing now uses the existing full rebuild path.

  • Incremental indexing rebuilds vectors when its previous manifest is missing.

Reviews (1) · Last reviewed commit: "fix(indexer): rebuild semantic index whe..." · Reviewed by Greptile

@PatrickSys
PatrickSys merged commit 4ad49b6 into master Dec 5, 2026
5 checks passed
@PatrickSys
PatrickSys deleted the fix/rebuild-missing-manifest-20261205a branch December 5, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant