GitNexus/gitnexus/src/core
Gergo Magyar b1ad4e8327 fix(analyze): drop FTS indexes before the incremental DETACH DELETE
Fixes #2589: incremental analyze intermittently crashed with "FTS
index 'file_fts' is inconsistent: term is missing during delete" after
markdown-only commits, and --repair-fts also failed in that state.

deleteNodesForFiles' batched DETACH DELETE ran against tables that
still carried the FTS index built at the end of the PREVIOUS analyze
run -- createSearchFTSIndexes only drops+rebuilds every index in Phase
3, well after that delete already ran. LadybugDB's FTS extension is
not proven to survive DML against an indexed table (its own docs never
demonstrate the sequence). Call the new dropSearchFTSIndexes() up front
in the non-escalated incremental branch, before deleteNodesForFiles --
Phase 3 still rebuilds every index from the final row set regardless.

New end-to-end test drives a real runFullAnalysis full+incremental
cycle and confirms it fails without this change (file_fts and 50
sibling indexes still present at delete time) and passes with it.
2026-07-21 07:04:50 +00:00
..
augmentation fix(core): ensure path prefix and traversal guards support root directories (#2559) 2026-07-20 08:12:15 +01:00
embeddings feat(embeddings): control request-body dimensions via GITNEXUS_EMBEDDING_REQUEST_DIMS (#2574) 2026-07-21 05:46:20 +01:00
graph feat(cli): add circular import cycle check (#2166) 2026-06-12 04:53:17 +01:00
group fix: resolve imported/composed FastAPI route path constants (#2391) (#2393) 2026-07-07 13:23:05 +01:00
incremental fix: make large incremental writebacks commit reliably (#2409) (#2425) 2026-07-10 14:05:23 +01:00
ingestion fix: remove hardcoded 300-flows cap for large repositories (#2198) 2026-07-21 05:48:55 +01:00
lbug fix(lbug): stop dropFTSIndex from swallowing genuine engine failures 2026-07-21 07:04:50 +00:00
platform fix: surface real FTS extension LOAD errors and self-heal broken extension files (#2374) (#2375) 2026-07-06 06:41:05 +01:00
search refactor(search): extract dropSearchFTSIndexes from createSearchFTSIndexes 2026-07-21 07:04:49 +00:00
tree-sitter fix(tree-sitter): recover declarations after embedded NUL bytes (#2430) 2026-07-11 08:33:50 +01:00
wiki feat(wiki): allow explicit HTTP LLM hosts (#2491) 2026-07-16 13:53:58 +01:00
analysis-features.ts feat(spring): build bean candidate inventory (#2494) 2026-07-20 09:28:23 +01:00
analyzer-identity.ts feat(skills): GitNexus Engineering Tool Kits (#2566) 2026-07-19 15:07:24 +01:00
embedding-mode.ts feat: add optional limit arg to --embeddings flag (closes #382) (#1375) 2026-05-06 16:31:28 +01:00
git-staleness.ts fix(core): ensure path prefix and traversal guards support root directories (#2559) 2026-07-20 08:12:15 +01:00
index-freshness.ts feat(skills): GitNexus Engineering Tool Kits (#2566) 2026-07-19 15:07:24 +01:00
logger.ts fix(mcp): tolerate adapter-materialized line:0 in impact callgraph mode (#2279) (#2283) 2026-06-23 20:35:49 +01:00
run-analyze.ts fix(analyze): drop FTS indexes before the incremental DETACH DELETE 2026-07-21 07:04:50 +00:00