mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1195] [MERGED] fix(long-term-memory): 1.3.38 — rebuild the recall index when a settings save changes it #1339
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#1339
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1195
Author: @Promansis
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/await-settings-index-rebuild📝 Commits (2)
1c54d63fix(long-term-memory): 1.3.37 — rebuild the recall index when a settings save changes it818cb0dMerge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/await-settings-index-rebuild📊 Changes
20 files changed (+434 additions, -131 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.38.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/client.js(+30 -30)📝
packages/long-term-memory/manifest.json(+5 -5)📝
packages/long-term-memory/server.mjs(+26 -26)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx(+43 -12)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json(+3 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts(+6 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+18 -10)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts(+27 -3)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-feedback-clarity-ui.regression.mjs(+22 -0)📝
tests/long-term-memory-routes.regression.ts(+138 -0)📝
tests/long-term-memory-runtime.regression.ts(+69 -0)📄 Description
Pull request
Linked issue
Closes #1193
Why this change
Changing the global custom stop-word list, or the "filter generated" toggle, changes what the recall index contains, but
PUT /settingsandPOST /settings/resetpersisted the change without rebuilding. The next recall then paid for the whole stale rebuild inline, under the vault lock, and the Memory Settings UI reported only a generic "saved" message even when that later rebuild failed.Separately, a recall that queued behind a settings save could read the pre-save stop words before the lock and then republish an index built with them after the lock, and extraction edits typed during the awaited global rebuild were overwritten when the save resolved.
What changed
PUT /settingsandPOST /settings/resetnow await the existingrebuildAfterMutationresult when — and only when — the effective generated stop-word set (normalized/sortedbuildStopWordSetoutput plus the filter flag) actually changes. Recall-only settings still save without rebuilding.rebuildcomplete/deferredoutcome. A failed rebuild is reported as saved-but-index-failed; settings are not rolled back, re-reported as unsaved, or retried automatically. The index-statefailedsurface stays authoritative.rebuildLongTermMemoryIndexesandloadOrRebuildLongTermMemoryIndexes, andretrieveLongTermMemoryreads settings and loads the index under one lock scope, so a recall queued behind a save cannot republish an index built with the old stop words.1.3.38(upstream already shipped1.3.37with the plain-words description change); package payload, manifest, artifact, and all catalog lanes/notes rebuilt from source.tests/long-term-memory-runtime.regression.ts, route coverage for the settings/reset rebuild outcomes, and a static UI assertion for extraction-edit preservation.Package and security impact
long-term-memory(1.3.38).engine.min = 2.4.1,engine.maxExclusive = 4.0.0,builtAgainstunchanged.agent-runtime,chat-read,chat-write,routes,storage,ui; entrypoints unchanged.restartRequiredunchanged (true). The settings save can now trigger a recall-index rebuild; the on-disk settings and index schemas are unchanged, and no user state is silently dropped.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Local checks run on final HEAD
818cb0da73b35b9d422ea6198271405fd91446a9(merge ofupstream/stagingdeae826baab5e79aba5545c0fd4265c60c59a999), worktree clean:test-fast.sh(npm run check + bothgit diff --checkchecks) — pass.npm run typecheck:packages— pass; Long-Term Memory had no syntax, undefined-name, or unresolved-module errors.node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-package-locale-keys.mjs,node scripts/tests/ui-translation-retention.regression.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-generatedat-determinism.regression.mjs,node scripts/tests/catalog-release-notes.regression.mjs— pass.test-ltm.sh runtime,routes,routes-backup,storage,feedback-clarity-ui,installation,loading— pass. Theinstallationregression exercises install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation against the rebuilt1.3.38archive.artifacts/long-term-memory-1.3.38.zip(sha256cb2cdc3a...computed at build; regenerated in this commit).Not performed: hosted CI, CodeRabbit, and a browser-interactive save-flow check. The client edit-preservation fix is covered by a static source assertion because the repository has no DOM/interaction harness for
MemorySettings.Documentation impact
No README or Engine documentation change is needed: the package was already listed and only its version and behavior changed.
UI evidence (if applicable)
No screenshots. The UI change is state handling for existing messages plus three new localized strings; no layout change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.