doctor(memory): surface FTS5 unavailable state in doctor checks#2087
Open
BingqingLyu wants to merge 3 commits into
Open
doctor(memory): surface FTS5 unavailable state in doctor checks#2087BingqingLyu wants to merge 3 commits into
BingqingLyu wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes openclaw#62328 by making
openclaw doctorvisibly report when SQLite FTS5 is unavailable in the running gateway.doctor.memory.statuspayload withftsprobe fields (enabled,available,error)probeGatewayMemoryStatusin doctor command flownoteMemorySearchHealthwhen gateway reports FTS unavailableno such module: fts5/ missingENABLE_FTS5Why
Without this, users can see memory embeddings as ready while FTS keyword/BM25 fallback is silently unavailable. This change surfaces the condition and gives concrete next steps.
Tests
src/gateway/server-methods/doctor.test.tsto assertftsis returned indoctor.memory.statussrc/commands/doctor-memory-search.test.tsto assert doctor emits an FTS5 warning when gateway probe reports unavailablecorepack pnpm exec vitest src/gateway/server-methods/doctor.test.ts -t "returns gateway embedding probe status for the default agent"corepack pnpm exec vitest src/commands/doctor-memory-search.test.ts -t "warns when gateway probe reports FTS unavailable"Notes
One unrelated existing test in
src/gateway/server-methods/doctor.test.tsis currently path-sensitive on this Windows environment (falls back to the manager workspace...) and fails independently of this change. The new/affected targeted cases pass.