mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6750] [MERGED] feat(memory): add optional Decision model for Advanced Memory #7313
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#7313
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/6750
Author: @SpicyMarinara
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/advanced-memory-decisions📝 Commits (3)
494eb5edocs: start Advanced Memory decision integration (#6749)ffb1e39feat(memory): use optional Decision connection for scenes and recall (#6749)a561995fix(memory): retain fallback vectors during Decision reindex📊 Changes
16 files changed (+812 additions, -67 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/FAQ.md(+1 -1)📝
docs/agents/memory.md(+18 -6)📝
docs/connections/decision-models.md(+4 -0)📝
e2e/advanced-memory-wizard.e2e.ts(+2 -2)📝
e2e/advanced-memory.e2e.ts(+72 -3)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+9 -1)📝
packages/client/src/components/chat/AdvancedMemorySettings.tsx(+54 -0)📝
packages/client/src/localization/locales/en.json(+15 -4)📝
packages/server/src/routes/advanced-memory.routes.ts(+1 -0)📝
packages/server/src/routes/generate.routes.ts(+1 -0)➕
packages/server/src/services/advanced-memory-decisions.ts(+102 -0)📝
packages/server/src/services/advanced-memory.ts(+201 -50)📝
packages/shared/src/types/advanced-memory.ts(+2 -0)📝
scripts/regressions/advanced-memory-context.regression.ts(+2 -0)➕
scripts/regressions/advanced-memory-decisions.regression.ts(+326 -0)📄 Description
Linked issue
Closes #6749. Owner: @SpicyMarinara (Codex-assisted).
Why this change
Roleplay Advanced Memory can use a Decision model such as Jev to choose useful past scenes and original dialogue, including when wording differs from the latest message. The same connection can detect scene boundaries while the existing Helper model continues to write summaries.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCompleted automated checks (checkboxes above remain the human contributor's checklist):
pnpm check, including localization, formatting, types and production build; final browser-test type and formatting checks also passed.pnpm smoke:ui: 7 passed.retrieveMinMessagesfor probability-ranked excerpts would suppress relevant excerpts when the minimum is zero.Math.ceilturns a passing probability into one message, then the existing minimum/maximum limits apply. The reindex correction below received a further local review with no findings. No substantive local findings remain.Manual verification notes
Automated real-browser interactions enabled the toggle, checked the unselected-connection warning, selected a connection, reloaded to verify persistence, deleted the connection to verify fallback warnings, and disabled the option. Captures were inspected for the existing layout and light/dark themes.
GitHub review follow-up
Fixed the reported reindex edge case: Decision mode now retains existing valid fallback vectors instead of clearing them. The new regression builds vectors in ordinary mode, enables decisions, reindexes, and verifies the same vectorized records survive without any model calls. All 11 memory regression files and
pnpm checkpassed again, and the final container rebuilt and started successfully. New embeddings remain intentionally disabled in Decision mode; documented text matching remains the fallback for records without vectors.The two translated-documentation comments are covered by merged #6753.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedEnglish documentation and changelog are included. No version or storage-format change is needed. Existing chats keep ordinary memory behavior until the new option is enabled.
UI evidence (if applicable)
Desktop and mobile, toggle off/on, light and dark captures. All captures use disposable synthetic chats.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.