GitNexus/gitnexus/src
Gergő Magyar 4d7a0a69ed
fix(analyze): degrade FTS search instead of aborting analyze on index-build failure (#2548)
* fix(analyze): degrade FTS search instead of aborting analyze on index-build failure

createSearchFTSIndexes re-tokenizes every stored row on every analyze run
(full or incremental). A native LadybugDB tokenizer error on a single
pre-existing row (e.g. "Failed calling LOWER: Invalid UTF-8") previously
propagated uncaught out of run-analyze.ts's main FTS phase, discarding an
otherwise-successful run's graph/embeddings work every time analyze ran
thereafter.

Add buildSearchIndexesOrDegrade(), which catches build/verify failures and
lets analyze finish with keyword search degraded for that run instead —
mirroring the existing sibling degrade path for a missing FTS extension.
The dedicated --repair-fts path is untouched and still fails loudly.

Fixes #2544, #2546.

* fix(analyze): keep capabilities.fts/ftsSkipped honest when index build degrades

ftsSkipped and capabilities.fts.status were keyed only on ftsAvailable
(extension loaded), which the new degrade path leaves true even when the
index build itself failed. Track that outcome in ftsReady and use it for
both, and update run-analyze-fts-repair.test.ts's coverage of this path
from asserting the old throw to asserting the new degrade contract
(ftsSkipped, log message, meta.json capabilities.fts.status).
2026-07-18 08:44:09 +01:00
..
cli feat(wiki): allow explicit HTTP LLM hosts (#2491) 2026-07-16 13:53:58 +01:00
config fix(worker): analyze native worker aborts (#1833) 2026-05-26 17:28:39 +01:00
core fix(analyze): degrade FTS search instead of aborting analyze on index-build failure (#2548) 2026-07-18 08:44:09 +01:00
lib feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
mcp fix(mcp): avoid api impact schema combinators (#2489) 2026-07-16 15:20:22 +01:00
server fix(embeddings): make HTTP generation resumable (#2468) 2026-07-16 10:00:50 +00:00
storage fix(scope-resolution): resolve callable reference flows (#2437) (#2522) 2026-07-17 17:20:02 +01:00
types fix(embeddings): make batch inserts retry-safe (#2453) 2026-07-16 15:21:03 +01:00