mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1193] [Issue]: Long-Term Memory: await index rebuild after settings changes and report saved-but-index-failed #609
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#609
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1193
Originally assigned to: @Promansis on GitHub.
Summary
Changing the global custom stop-word list (or the "filter generated" setting) changes the effective recall-index fingerprint, but
PUT /settingspersists the change without rebuilding. The next recall then performs the whole stale rebuild inline, under the vault lock, and the settings UI reports only a generic "saved" message with no indication that indexing is stale or later fails.Affected package
long-term-memory(Long-Term Memory), package-owned settings routes and the Memory Settings UI. Findings A21 (package side) and the settings half of A6. This is the package-only half; the Engine-side effective-configuration notification is a separate Engine issue.Expected behavior
longTermMemoryStopWordsandlongTermMemoryStopWordsFilterGenerated(the effective generated-stop-word set consumed bychunkNotes), plusPOST /settings/reset. Recall-only settings that do not change chunking (budgetTokens,maxChunks,scoreThreshold,recallContextMessages, weights,includeResolved,recallPreamble,debug,sourcesAvailabilityModes) must not trigger a rebuild.rebuildAfterMutationcomplete/deferredresult shape; do not invent a second status vocabulary.failedreporting (index_rebuild_failed) authoritative for the status surface; do not suppress a failed rebuild behind a success message.Actual behavior
app.put("/settings", ...)callsupdateLtmGlobalSettings(...)and returns the saved settings. It never rebuilds.app.post("/settings/reset", ...)callsresetLongTermMemorySettings(...)and returns without rebuilding.loadOrRebuildLongTermMemoryIndexessees the changed effective stop words, fails thesourceHashcheck, and performs the full rebuild inline while holding the vault lock — the same latency A17/A18 describe.MemorySettings.saveSettings(packages/.../client/src/features/long-term-memory/MemorySettings.tsx) showsmemorySettingsSavedon success and a generic save error on failure; it has no saved-but-index-failed state.Steps to reproduce
recall.json'ssourceHashand modification time.PUT /settingswith a changedlongTermMemoryStopWordswhilelongTermMemoryStopWordsFilterGeneratedistrue. Confirm the settings response reports success and the index file is unchanged.loadOrRebuildLongTermMemoryIndexes(root, null, ltmGeneratedStopWords(settings)). Observe a changedsourceHashand a full inline rebuild that only happens at next recall.longTermMemoryBudgetTokens): the effective stop-word fingerprint and index must not change.Environment
2.4.6(227e3e12c87a55c40074413f1f32e57d732217da).1.3.34at the time of the fixture; package1.3.36is current upstream and does not change this behavior.v24.15.0, installedtsx4.23.13.Logs, screenshots, or video
Relevant output from the disposable readiness fixture (
/tmp/opencode/ltm-readiness-gaps.mts):Interpretation: toggling "filter generated" changed the index fingerprint but did not replace the cached vault scan; the settings write itself did not rebuild. No private chat data or real providers were used.
Additional context
Scope and ownership
staging. No Engine source change is required for this issue.packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/{routes,settings}.tsandpackages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx(plus its locale catalog for any new message).rebuildAfterMutationrather than adding a parallel rebuild helper, and reuse the existing index-state failure reporting.buildStopWordSetoutput and the filter flag) rather than raw form fields, so equivalent spellings do not cause a spurious rebuild.Validation plan
complete, and that a recall-only change performs no rebuild.pnpm localization:checkequivalent as required.Proof above is characterization and a red baseline, not repaired behavior or release validation. Installed dependencies differ from the repository's pins; install locked dependencies in the implementation workspace before claiming repository gates. No installed-package or browser validation has been performed.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: