Repository navigation
fix(memory): fully disable derived full-text indexes - #115685
Merged
Merged
Conversation
steipete-oai
marked this pull request as ready for review
July 29, 2026 06:34
steipete
force-pushed
the
codex/fix-memory-fts-disable-114317
branch
from
July 29, 2026 07:04
6981f5d to
eaee077
Compare
Contributor
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
Co-authored-by: Peter Steinberger <[email protected]>
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.
Closes #114317
Related contributor investigation: #114319 (thank you @kevin2966n).
What Problem This Solves
Fixes an issue where operators disabling memory hybrid/full-text search still retained the SQLite path-search index and all three source-write triggers. Canonical memory writes therefore continued maintaining disabled derived state and could fail if that state was damaged.
Why This Change Was Made
Keep the fix in the canonical memory-host SQLite owner: remove path maintenance triggers before dropping their derived path table whenever FTS is disabled, retain the shipped custom-body-table behavior, and let the existing enable path rebuild indexes exclusively from canonical memory sources. No schema-version bump, migration, dependency, provider knob, configuration, or public Plugin SDK change.
User Impact
Disabling hybrid search fully disables its path-index write cost; source writes remain independent of derived search tables, and re-enabling search automatically recovers every memory path, including sources written while disabled.
Evidence
node:sqlitelifecycle regression received the disabled path FTS table and all three source triggers instead of an empty schema.CI=1 pnpm check:changedon the exact final commit: passed, including format, max-line ratchet, core and test typechecks, typed lint, plugin boundaries, state-schema guard, database-first storage guard, runtime cycles, and all relevant SDK contracts.gpt-5.6-solextra-high-effort autoreview: clean, correctness 0.95.REAL_SQLITE_FTS_DISABLE_REENABLE_PASSfor canonical and custom body configurations; inserts while FTS is disabled are recovered through a real SQLite FTSMATCHafter re-enable.tbx_01kyp7kezqx3msgw7kbk68xesf; final commit:6981f5d28617c83fee9b965153ef559658d8b58b.