mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6469] [MERGED] fix: exclude Advanced Memory already present in live context #7191
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#7191
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/6469
Author: @SpicyMarinara
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept20-memory-context-overlap📝 Commits (3)
8110f9achore: coordinate Advanced Memory overlap fix (#6468)64b6ec6fix: exclude Advanced Memory already in live context (#6468)7be28eefix: exclude live scene timeframes from recalled excerpts📊 Changes
6 files changed (+128 additions, -37 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/agents/memory.md(+1 -1)📝
packages/server/src/services/advanced-memory.ts(+11 -23)📝
scripts/regressions/advanced-memory-core.regression.ts(+9 -8)📝
scripts/regressions/advanced-memory-history-start.regression.ts(+100 -1)📝
scripts/regressions/advanced-memory-summary.regression.ts(+5 -4)📄 Description
Linked issue
Closes #6468
Why this change
A context cutoff inside a scene could recall its entire recap alongside the scene's remaining live messages. Ranged manual summaries could also pull live messages into continuity. This wastes context and repeats information the model already receives.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence (human checklist left unchecked):
pnpm checkpasses, including localization, formatting, lint/types and production builds.pnpm regression:promptpasses all three prompt, attachment and context-fit lanes./api/health. The full dependency/container rebuild is also exercised by required GitHub CI.Manual verification notes
Manually verify the final prompt inspector with a shared context start inside a scene and existing ranged manual summaries: live messages should have no overlapping full recap, while older memories remain available. No interactive browser session was performed for this server-only change. Actual generation, dry-run preview and historical regeneration are exercised by the API regression.
Docs and release impact
Updated
docs/agents/memory.mdandCHANGELOG.md; #6467 includes the translation follow-up. No release metadata, storage-format or dependency changes.UI evidence (if applicable)
No interface changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.