mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7250] [Issue]: Advanced Memory adds a bare range header for summaries that render empty for the reader #4045
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#4045
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 (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7250
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In Advanced Memory, a Chat Summary entry whose conditional sections all render to empty text for the reader still puts its range header in the prompt:
Messages #a–#b; source timeframe (summary corrections take precedence): …with nothing under it. This happens in Individual and merged group chats, and in one-character chats. The empty header also counts against the memory budget.The builder of #7239 found this while fixing #7237: a character who joins a group later gets a bare header for every summary the earlier cast wrote for themselves.
Expected behavior
An entry that renders to nothing for the reader is left out completely: no range header, no tokens counted, in the prompt sent to the model, in Peek Prompt and in the preparation receipt. Entries with any content are unchanged.
Actual behavior
The entry keeps its header. Example from an Individual group chat, reading as Cara, who joined after Maukie and Pantalone wrote a shared summary scoped to themselves:
The first header has no text under it. Cara cannot read that entry, so it should not appear at all.
Steps to reproduce
{{#if char == "Narrator"}}Only the narrator knows this.{{/if}}, or let a character join after summaries scoped to the earlier cast exist.Messages #…; source timeframe …with nothing under it.Environment
10bdad166(after #7239)Logs, screenshots, or video
Reproduced in
scripts/regressions/advanced-memory-audience.regression.ts: Cara's Individual recall on staging returns the bareMessages #3–#4header shown above.Additional context
prepareImplinpackages/server/src/services/advanced-memory.tsaddsrenderMemoryText(...)whenever the entry covers messages, even whenrenderEntry(...)returned empty text.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fix in #7255. One exception, on purpose: when the entry's messages have a known story date, the dated range line stays. Since
fd8f408d4, scene dates are shared with every participant, andadvanced-memory-summary.regression.tsasserts that every reader's Chat Summary includes that date. Only headers with an unknown timeframe and nothing under them are removed.@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7255. Ships tomainwith the next promotion.