Repository navigation
Explain how to rebuild an unreadable cache on archive queries - #438
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks, this follows the direction in #335 closely, and the One thing in the template: the new hint applies to every statusEl.textContent =
'Search index unavailable: ' + (index.reason || 'not built') +
(index.available === false ? '.' : '. Restart the server without --no-convert to build the index.');Nit: |
|
Thanks a lot, really appreciate the quick turnaround! |
Fixes #335.
With an unreadable SQLite cache, opening an archive with
serve --no-convertleaves the page available, but searching or loading the project filter returns HTTP 500 with a generic internal error. Restarting with the same flag preserves the damaged cache.The two read endpoints now translate a recognized SQLite corruption error into the existing HTTP 400 error contract and explain how to rebuild the cache. Other database errors retain their existing handling. The page's initial index warning also specifies that the restart must omit
--no-convert.Two real HTTP requests against a temporary invalid SQLite file returned 500 on main. The regression tests now get 400 and the recovery instruction for both routes. The archive page, search and server suites passed locally (184 tests).
Implemented and verified with OpenAI Codex (GPT-6).
Summary by CodeRabbit
--no-convert.--no-convert.