mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7605] [MERGED] feat(memory): character recollections in Advanced Memory Recall #7829
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#7829
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/7605
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/memory-character-recollections📝 Commits (10+)
c6717f0feat(memory): character recollections for recalled scenes36ec431feat(memory): Character recollections switch and inspector editinga128a44fix(memory): build recollection lines only for scenes recall selects3c82297docs(memory): say exactly how recollections keep to what a character knewba297f8Merge branch 'staging' into feat/memory-character-recollectionsabb2eb0fix(memory): keep recollections to what their character can read and ask for each once659f878feat(memory): show empty and review-needed recollections in the inspector4b24de7Merge remote-tracking branch 'origin/feat/memory-character-recollections' into feat/memory-character-recollectionsd1b516cMerge branch 'staging' into feat/memory-character-recollections86c753cchore(memory): bump the prepared-memory revision past staging's v25📊 Changes
12 files changed (+2418 additions, -111 deletions)
View changed files
📝
docs/agents/memory.md(+19 -1)📝
e2e/advanced-memory.e2e.ts(+193 -0)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+90 -1)📝
packages/client/src/components/chat/AdvancedMemorySettings.tsx(+17 -0)📝
packages/client/src/hooks/use-advanced-memory.ts(+6 -1)📝
packages/client/src/localization/locales/en.json(+11 -0)📝
packages/server/src/routes/advanced-memory.routes.ts(+8 -2)📝
packages/server/src/services/advanced-memory-transfer.ts(+1 -1)📝
packages/server/src/services/advanced-memory.ts(+866 -103)📝
packages/shared/src/types/advanced-memory.ts(+5 -2)➕
scripts/regressions/advanced-memory-recollections-upkeep.regression.ts(+511 -0)➕
scripts/regressions/advanced-memory-recollections.regression.ts(+691 -0)📄 Description
Linked issue
Closes #7602
Why this change
What changed
Nothing changes unless you turn the new setting on; it is off for every chat.
{{#if char == …}}part of a summary is known only to the characters it names.Kaito's personal recollections from this scene: *…*(asterisks inside the text are removed).scene-timeframe-constants-v25, so saved swipe snapshots are prepared once more. No storage-format change.docs/agents/memory.mdgets a Character recollections section and the new budget order.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results as observed, at the review-fix head):
pnpm check: exit 0 with the branch at staginga0cb12dd5(one existing lint warning inHomeProfessorMariChat.tsx, unrelated). After the latest staging merge,packages/clientfails to typecheck.TacticalCombatUI.tsximportsGAME_SECTION_CLASStwice, because #7608 and #7609 both restored it on staging. This PR does not touch that file.node ./scripts/run-regressions.mjs --filter advanced-memory: 18/18 passed, includingadvanced-memory-recollections.regression.tsand the newadvanced-memory-recollections-upkeep.regression.ts.pnpm regression:prompt: passed.chat-branch-lineage,context-fit-summary,merged-chat-summary,memory-recall-exclusivity,memory-recall-revectorize,native-export-memory,roleplay-user-private-memory,summary-write-range: all passed.pnpm localization:check: passed.npx playwright test e2e/advanced-memory.e2e.ts --project desktop-chromium -g "Character recollections"(custom ports): passed. Light and dark screenshots of the inspector were checked. The other tests in that file and the mobile projects were not rerun.d01dc5f84.The regressions cover:
{{#if}}part of a Chat Summary, and a secret that also sits in another character's card are all left out, while everyday wording is kept;Manual verification notes
Not yet verified by a person:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/memory.mdis updated.[docs-i18n]follow-up: #7596 ([docs-i18n] docs/agents/memory.md). Its comments cover this PR's first version and the review changes:UI evidence (if applicable)
Light and dark desktop screenshots of the new switch and the inspector section, including an empty recollection, are captured by the e2e test (
character-recollections-switch-*.png,character-recollections-inspector-*.png). They are not attached here.Local CodeRabbit review
coderabbit review --agent --committed, based01dc5f84, first three commits): 2 findings.3c8229709.--base-commit 3c8229709, the review-fix commits): 1 finding, the docs-i18n follow-up. That is issue #7596, linked above.Review fixes (since the first version)
Fixed:
{{#if}}parts of Chat Summaries could reach another character's recollection, with no rule or check against it.Not changed:
Open questions for the maintainer:
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.