mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6490] [MERGED] fix: prioritize memory budgets and archive exact scene endings #7200
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#7200
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/6490
Author: @SpicyMarinara
Created: 9/21/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept21-memory-constants-scenes📝 Commits (9)
96dbe41docs: track Advanced Memory constant and scene follow-up3493c74fix: retain constants and archive numbered scene endings after repliesd84328etest: align interrupt fixture with numbered scene-check decisions422054cfix: tell the summary helper about the soft token targetf4fc936Merge branch 'staging' into codex/sept21-memory-constants-scenes0feb91bfix: reserve per-character constant share and unify recall markers7167804fix: preserve scoped summary macros during compactione771565Merge remote-tracking branch 'origin/staging' into codex/sept21-memory-constants-scenes95f6009Merge remote-tracking branch 'origin/codex/sept21-memory-constants-scenes' into codex/sept21-memory-constants-scenes📊 Changes
18 files changed (+936 additions, -246 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
docs/agents/memory.md(+5 -6)📝
e2e/advanced-memory-wizard.e2e.ts(+1 -1)📝
e2e/advanced-memory.e2e.ts(+67 -1)📝
packages/client/src/components/chat/AdvancedMemorySettings.tsx(+6 -3)📝
packages/client/src/components/presets/PresetEditor.tsx(+15 -15)📝
packages/client/src/localization/locales/en.json(+3 -2)📝
packages/server/src/routes/generate.routes.ts(+36 -1)📝
packages/server/src/services/advanced-memory.ts(+256 -161)📝
packages/server/src/services/agents/agent-progress.ts(+8 -8)📝
scripts/regressions/advanced-memory-core.regression.ts(+25 -17)📝
scripts/regressions/advanced-memory-generation.regression.ts(+3 -1)📝
scripts/regressions/advanced-memory-history-start.regression.ts(+9 -4)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+321 -11)📝
scripts/regressions/advanced-memory-recall.regression.ts(+153 -3)📝
scripts/regressions/advanced-memory-summary.regression.ts(+5 -1)📝
scripts/regressions/agent-scene-check.regression.ts(+13 -10)📝
scripts/regressions/roleplay-interrupt-generation.regression.ts(+5 -1)📄 Description
Linked issue
Follow-up to #6474 and #6471, based on SpicyMarinara's post-update testing. Implementation owner: SpicyMarinara / Codex.
Why this change
Enabled Chat Summaries disappeared until their entire ranges fell behind the live cutoff. Constants now remain included across archived, overlapping and live ranges, with character access and historical-source restrictions preserved. The configured memory budget now prioritizes constants, then scene summaries, then excerpts, while keeping compaction after the main reply.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence:
pnpm checkandpnpm regression:promptpassed. One existing client hook-dependency lint warning remains outside this patch.pnpm exec playwright test e2e/advanced-memory.e2e.ts e2e/advanced-memory-wizard.e2e.ts --workers=1: all 24 cases passed across desktop Chromium, mobile Chromium and mobile WebKit, including streaming with the OpenAI Responses fixture, idle behavior and post-generation progress.Manual verification notes
Manually verify the original long iPhone chat: all applicable enabled constants in Peek Prompt, illustration-free recalled excerpts, and exact closed-scene ranges with and without tracker agents. Automated fixtures do not establish live-model scene judgment or physical-iPhone behavior.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated
CHANGELOG.mdanddocs/agents/memory.md; #6491 tracks all ten documentation language packs. No storage migration or version bump.UI evidence
Settings describe the combined memory budget and its allocation. Presets offer one combined recall marker. Browser coverage includes the legacy alias, the single marker picker, budget autosave, archive editing/deletion, idle behavior, streaming and background progress. Before/after desktop and iPhone screenshots were captured locally; browser test artifacts include current light/dark marker-picker screenshots. The original physical-iPhone chat remains a manual check.
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.