mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7501
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-Engine/pull/7148
Author: @Promansis
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix(ltm)/7042-embedding-refresh📝 Commits (2)
4a0d8a1fix(ltm): refresh LTM after effective embedding-connection changes (#7042)d8ed0c9Merge remote-tracking branch 'upstream/staging' into fix(ltm)/7042-embedding-refresh📊 Changes
7 files changed (+142 additions, -14 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/lib/api-client.ts(+9 -0)📝
packages/client/src/localization/locales/en.json(+5 -0)📝
packages/server/src/routes/agents.routes.ts(+8 -1)📝
packages/server/src/routes/connections.routes.ts(+20 -11)📝
packages/server/src/services/generation/long-term-memory-runtime.ts(+61 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+37 -2)📄 Description
Linked issue
Closes #7042
Why this change
Saving an effective embedding-connection configuration change did not notify the active Long-Term Memory (LTM) package or await its index refresh. The save finished before memory indexing was attempted, so rebuild latency and failures surfaced on a later recall instead of with the configuration change that caused them.
What changed
refresh({ signal })to thelong-term-memory:runtimecapability service contract. The package owns freshness checks, locking and rebuilding.withLongTermMemoryEmbeddingChangeinpackages/server/src/services/generation/long-term-memory-runtime.ts. It snapshots the effective embedding configuration before saving, persists the change first, then awaits the optional package refresh only when the effective selection/identity changed. Save success stays independent of the refresh outcome.X-Marinara-LTM-Refresh(refreshed,deferred,failed,timeout,unavailable). Existing response bodies and the DELETE204are preserved.[Unreleased]changelog entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkon the merged HEAD (Impeccable guard, localization, Prettier, lint, e2e types, token-estimation types, production build) andnode scripts/run-regressions.mjs --filter capability-package-lifecycle. Both passed.refreshoperation. The current published package does not export it, so the Engine path is currently only proven against the synthetic host contract in the regression. Real indexing and next-recall freshness still need an Agents-side companion change.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.