mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1305] [MERGED] fix(long-term-memory): 1.4.24 — refresh the recall index on an embedding-config save #1394
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#1394
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/1305
Author: @Promansis
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/refresh-hook📝 Commits (1)
538d622fix(long-term-memory): 1.4.24 — refresh the recall index on an embedding-config save📊 Changes
14 files changed (+213 additions, -79 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.24.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+39 -39)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts(+19 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/server-entry.ts(+5 -0)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-runtime.regression.ts(+106 -0)📄 Description
Closes #1303
Why this change
Long-Term Memory never registered the runtime
refreshhook the Engine calls after a connection or agent save changes LTM's embedding source. Every such save therefore left the vault's recall index on the previous embedding space, so the next chat recall had to re-embed the whole vault inline (a slow first reply), and the Engine could only reportX-Marinara-LTM-Refresh: unavailable.What changed
long-term-memory(1.4.23→1.4.24, patch).refreshon thelong-term-memory:runtimeservice. It resolves the current embedding adapter, rebuilds the index for the new space, and rejects when the new source still cannot embed the vault, so the Engine reportsfailedinstead of a false success.packages/long-term-memory/server.mjs,artifacts/long-term-memory-1.4.24.zip,catalog/{,v2/,v3/}catalog.jsonandnotes.json, and the manifest file hashes.client.jsis unchanged.Package and security impact
long-term-memoryengine.minstays2.4.1and the capability API stays1.6. The hook is optional and host-side; an Engine that predates it never callsrefreshand keeps today's behaviour.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Local validation only; hosted CI and a manual Engine UI install were not performed, so the checkboxes above are left for a human.
test-ltm.sh runtime— pass, including a new interleaving case that fails before this fix (an in-flight upgrade failing while a save's refresh waits must not suppress the retry).test-ltm.sh installation—1.4.24install, offline restart, backup inclusion, uninstall, reinstall and durable-byte preservation: pass.npm run check,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs,npm run typecheck:packages,git diff --check— all pass.Documentation impact
No documentation changes: catalog membership, Engine compatibility, permissions and user-visible package guidance are unchanged. The release note lives in
packages/long-term-memory/CHANGELOG.md(1.4.24) and is published throughnotes.json.UI evidence (if applicable)
Not applicable; no UI change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.