mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7333] [MERGED] fix(advanced-memory): offer local models as the memory Decision model #7684
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#7684
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/7333
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7326-amr-primary-local-model📝 Commits (8)
3e26316fix(advanced-memory): offer local models as the memory Decision model93b8640Merge origin/staging into fix/7326-amr-primary-local-modelebc82f3fix(decision): stop waiting for a loading local model when the caller gives up3e05bb2Merge origin/fix/7326-amr-primary-local-model into fix/7326-amr-primary-local-modeld5ebf2afix(advanced-memory): say when the local model list fails to loadcc4ec95Merge origin/staging into fix/7326-amr-primary-local-model93d0545Merge origin/staging into fix/7326-amr-primary-local-model454e028Move the CHANGELOG entry away from other open PRs📊 Changes
9 files changed (+352 additions, -53 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/memory.md(+1 -1)📝
docs/connections/decision-models.md(+2 -2)📝
packages/client/src/components/chat/AdvancedMemorySettings.tsx(+44 -12)📝
packages/client/src/components/connections/DecisionDefaultControl.tsx(+33 -18)📝
packages/server/src/routes/advanced-memory.routes.ts(+1 -0)📝
packages/server/src/services/advanced-memory.ts(+20 -6)📝
packages/server/src/services/decision/decision-slots.ts(+26 -14)➕
scripts/regressions/advanced-memory-local-decision.regression.ts(+224 -0)📄 Description
Linked issue
Closes #7326
Why this change
provider === "decision"(AdvancedMemorySettings.tsx), and the server could not have used a local model anyway.memoryDecisionBackendhard-codedgetLocalDefault: async () => null(advanced-memory.ts), andupdateSettingsrefused any id that is not a saved Decision connection row.What changed
advanced-memory.ts): the chat's Decision choice now goes through the sameresolveDecisionBackendpath as lorebooks, prompt statements and activation questions. A local model id (sidecar:local, the utility slot, the decision sidecar) resolves as that local model; any other id stays a connection row as before.describeDecisionSlotrule the global/decision/selectuses.forceStart), as it does for lorebooks. If it fails to start, recall falls back to ordinary recall and scene checks to the helper, as they already did for an unreachable connection./decision/optionslist, so entries that cannot answer are greyed out with the same reason the global dropdown gives. The existing connections are under Connections. The option row renderer moved out ofDecisionDefaultControlso both dropdowns share it. No new UI text: the group labels and reasons reuse existing keys.decision-slots.ts,advanced-memory.routes.ts): starting a stopped Primary or Utility local model is now raced against the caller's signal, as the decision sidecar already was. Without it a recall pass waited for the whole cold load instead of falling back after its 10-second limit, and a cancelled generation also waited for the load; the start carries on in the background. The Advanced Memory settings route also answers 400 with the reason, not a 500, when a local model that cannot answer is chosen. The regression now checks that a model still loading does not hold its caller past the time limit (it fails without the change)./decision/optionsfails to load, the existing load-failure line under Memory Decision connection now shows that error too, with Retry, and the menu stays disabled until the list loads (found by local CodeRabbit). That line now uses the steady accent, so it does not pulse with Accent Pulse. No new text.docs/agents/memory.md(Optional Decision model) anddocs/connections/decision-models.md. CHANGELOG entry under[Unreleased].scripts/regressions/advanced-memory-local-decision.regression.tsuses a fake llama-server and a fake Primary local model. It checks that the model is refused with no model downloaded. It then checks that scene checks and recall send one-token log-probability requests to the local model and none to the helper's classifier, and that the model is started withforceStart. Last, it checks the fallbacks when the model fails to start or is removed. Before the fix it fails at the first assertion. With only the settings check fixed, it fails at "the local model checks scene boundaries".Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
/decision/optionsfails (for example, block it in DevTools), Memory Decision connection is disabled and the line under it shows the error with Retry, and that Retry brings the local models back.Agent-run checks:
node ./scripts/run-regressions.mjs --filterforadvanced-memory-local-decision(new),advanced-memory-decisions,advanced-memory-recall-shortlist,advanced-memory-visibility,advanced-memory-post-generation,advanced-memory-core,roleplay-user-private-memory,decision-local-models, anddecision-conditionals: all passed.pnpm localization:check: no new or changed keys.pnpm check(through the shared slot limiter): passed. No browser run was done.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Translations: tracked in #7332.
Existing copy that is now slightly off but was not changed, per the no-side-copy-edits rule: the placeholder "Choose a Decision connection", the label "Memory Decision connection", the help line "Create a Decision connection in Connections, then pick it here…", and the warning "Choose a usable Decision connection…" all say "connection" even when a local model is chosen.
UI evidence (if applicable)
Not captured. The change adds
<optgroup>groups to an existing native select.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.