mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7042] [Issue]: Refresh LTM after effective embedding-connection changes #3943
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#3943
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 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7042
Originally assigned to: @Promansis on GitHub.
Summary
Saving an effective embedding-connection change does not notify the active Long-Term Memory (LTM) package or await its index refresh. The save finishes before memory indexing is attempted, moving rebuild latency and failures to a later recall instead of reporting them with the configuration change.
Expected behavior
Persist valid configuration first, then call and await a narrow package-owned index-refresh operation when the effective LTM embedding configuration/selection changes. Report configuration-save success separately from indexing success, failure or a deferred/unavailable runtime. An indexing failure must not imply that the configuration was not saved.
Actual behavior
Connection create/update routes persist the configuration and reset Engine's vectorizer-availability cache, but do not notify the LTM runtime. Package-specific connection-selection save paths likewise have no LTM refresh integration. The capability host can resolve current embedding configuration lazily, so eventual configuration pickup exists; immediate refresh/completion feedback does not.
The Agents settings-triggered rebuild fix has landed, but the runtime service does not yet export the Engine-callable refresh operation needed here.
Steps to reproduce
An earlier helper/HTTP fixture exercised the real connection routes with a registered synthetic LTM runtime service; a complete installed-package/browser save-and-refresh flow has not been run:
long-term-memory:runtimeservice with a counting refresh method and select a synthetic remote embedding connection.Environment
staging, source inspected at35621d44bbe7bf3336943e1076e4e8065a8b835a; no release-build reproduction claimed.Logs, screenshots, or video
No browser screenshots or provider-backed indexing logs were collected. The earlier route fixture observed successful saves, a changed remote model identity, and zero runtime notifications. It did not call a real embedding provider and was not rerun for this filing. Current upstream still has the missing notification path.
Current source references:
Additional context
Related package settings fix: Marinara-Agents #1193, implemented by PR #1195. A small, separately owned Agents companion change is still required to export the private refresh method. Do not implement package indexing in Engine or call its internal files directly.
Agreed scope without sidecar identity changes:
spaceIdto decide whether saved embedding configuration changed. Credential/header changes are retry/request-cache changes, not automatically incompatible vector spaces; retain that distinction and handle recovery where appropriate.Implementation validation should cover persistence-before-refresh; successful awaited completion; indexing error/timeout with saved configuration retained; inactive/older package behavior; selected/default/package-selection changes; unchanged/unselected edits; credential-only controls; and next-recall freshness. Reuse capability/connection regressions and the package's rebuild proofs, then run repository-required validation. No post-fix or browser gates have been run for this filing.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: