mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #559] [MERGED] Fix Memory Recall storing rerolls #4674
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#4674
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/559
Author: @TheLonelyDevil9
Created: 5/8/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @TheLonelyDevil9
Base:
main← Head:fix/issue-548-memory-reroll-recall📝 Commits (5)
750c5f6Document draft PR issue workflow3818ff2Fix memory recall reroll invalidation642c7a8Avoid unnecessary memory invalidation for inactive swipe deletiond111440Address memory recall review feedback4c754f2Document issue ownership tagging workflow📊 Changes
4 files changed (+116 additions, -7 deletions)
View changed files
📝
AGENTS.md(+3 -0)📝
CLAUDE.md(+3 -0)📝
packages/server/src/services/storage/chats.storage.ts(+10 -0)📝
packages/server/test/memory-recall.test.ts(+100 -7)📄 Description
What?
Fixes Memory Recall so discarded reroll/swipe content does not stay embedded in chat memory.
Why?
Users reported that rerolled roleplay responses could still be saved into Memory Recall and later influence the narrative, even though those discarded responses are not the visible conversation outcome.
How?
Message edits and deletes already invalidated memory chunks from the affected message timestamp onward. Swipe operations also mutate the canonical
messages.contentfield, but did not invalidate already-built chunks. This change reuses the same invalidation helper in the swipe mutation paths so the next memory refresh or automatic chunking pass rebuilds from the currently active response text.Silent swipe insertion is left unchanged because it only adds alternate swipe rows without changing the active message content.
Testing?
pnpm --filter @marinara-engine/server exec tsx --test test/memory-recall.test.tspnpm checkScreenshots (optional)
Not included. This is a server-side Memory Recall state correctness fix with no UI changes.
Anything Else?
Closes #548.
Summary by CodeRabbit
Bug Fixes
Tests
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.