mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7284] [MERGED] fix(memory): stop combined summaries that shorten nothing from repeating every reply #7663
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#7663
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/7284
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/combine-behaviour-followup📝 Commits (6)
aaf1016fix(memory): stop combined summaries that shorten nothing from repeating every reply9fcc764docs(changelog): note the combined-summary follow-up fixes7598dc7Merge origin/staging into fix/combine-behaviour-followupf10c614Merge origin/staging into fix/combine-behaviour-followup8ac4a79Merge origin/staging into fix/combine-behaviour-followupb011008Merge origin/staging into fix/combine-behaviour-followup📊 Changes
3 files changed (+40 additions, -6 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/services/advanced-memory.ts(+14 -6)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+25 -0)📄 Description
Linked issue
Follow-up to #7275 (merged), which closed #7270. Refs #7270.
Why this change
A behaviour check of #7275 with realistic fixtures (one-by-one and merged group chats, a narrator, a newcomer, hidden messages, tight and roomy budgets, 20 constants) compared against
stagingturned up two ways the new combining wasted Helper calls:stagingbefore #7275 made 0 calls, and this PR makes 1 call and then stops.Mari asked for the Helper to combine memories to shorten them. Both problems cost her money without shortening anything.
What changed
packages/server/src/services/advanced-memory.tsscripts/regressions/advanced-memory-post-generation.regression.ts: two new cases in the #7270 block. No existing assertion changed.CHANGELOG.md: entry at the top of[Unreleased].No docs change:
docs/agents/memory.mdalready says a result that isn't shorter, or that changes who can read a private part, isn't saved.Fixture results (PR vs
stagingbefore #7275)stagingstayed over budget at 764 and 713 after 3 replies and 2 calls. Neither character saw the other's secrets.stagingleft the narrator over budget at 732.stagingcombined none of them.stagingpaid on every reply and was still at 604 tokens against a 210-token share.Known cost, unchanged here: if a Helper never keeps the conditions, every reply where the plain summaries still shrink costs 2 calls (the combine attempt plus the plain fallback), where
stagingcost 1. It stops when the plain summaries stop shrinking.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for the reviewer to confirm, not proof):
pnpm check: exit 0.pnpm regression:prompt: 3 of 3 passed.advanced-memory-*,memory-recall-*and summary regressions, plusroleplay-regeneration-contextandroleplay-interrupt-generation: 23 of 23 passed.Manual verification notes
{{#if char == "Name"}}section. Send a reply and confirm, in Chat Summaries, that one combined summary replaces them and keeps the private section's condition.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable: server only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.