mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4270] [Issue]: Regenerated messages leak into summary and memory context #2310
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#2310
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 @SpicyMarinara on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4270
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Regenerating an assistant message after an automatic summary run causes the original message to remain in the outgoing prompt through the Chat Summary and, in some cases, Memories blocks.
Expected behavior
When regenerating an assistant message, the original message should be excluded from all prompt context, including automatic summaries and recalled memories.
Actual behavior
The Chat Summary block describes the assistant message being regenerated. If at least five unchunked messages accumulated, the Memories block can also contain that message, causing models to behave as though they already produced the response.
Steps to reproduce
automaticSummaryEnabled: trueand the defaultsummaryRunInterval: 5.Environment
Logs, screenshots, or video
Attached root-cause analysis and suggested patches:
regen-summary-contamination.md(not vetted by the reporter): https://cdn.discordapp.com/attachments/1532101607595180164/1532101608119341056/regen-summary-contamination.md?ex=6a6ba050&is=6a6a4ed0&hm=523e0c086b7601b053cd31bea02e4dd045531349c6253a8fcef54a6928a099f2&Additional context
Affects DM and RP modes; Game mode was not tested. With reasoning models, the chain of thought may indicate that the model believes it already produced the message and may repeat the same response. Installation was performed using
start-termux.sh.Discord thread: Regenerated messages leak into context via summary + memory recall
Discord thread link: https://discord.com/channels/1417099416812392641/1532101607595180164
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: