mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7374] [MERGED] fix(memory): check every new message and show the last checked one #7705
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#7705
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/7374
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/scene-check-every-new-message📝 Commits (7)
c95ebfdfix(memory): check every new message and show the last checked onef404f23Merge branch 'staging' into fix/scene-check-every-new-message5be70ccfix(memory): shorten a long previous message in the scene check4727872fix(memory): show the Helper who wrote each scene-check message43bda6dfix(memory): restore scene-check guards and suites broken by #7373962baa4Merge remote-tracking branch 'origin/fix/memory-scene-regressions' into fix/scene-check-every-new-message05aa664Merge branch 'staging' into fix/scene-check-every-new-message📊 Changes
10 files changed (+154 additions, -37 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/memory.md(+1 -1)📝
packages/client/src/localization/locales/en.json(+1 -1)📝
packages/server/src/routes/generate.routes.ts(+3 -1)📝
packages/server/src/services/advanced-memory-decisions.ts(+1 -2)📝
packages/server/src/services/advanced-memory.ts(+55 -19)📝
scripts/regressions/advanced-memory-decisions.regression.ts(+79 -6)📝
scripts/regressions/advanced-memory-local-decision.regression.ts(+1 -1)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+11 -5)📝
scripts/regressions/advanced-memory-recall-shortlist.regression.ts(+1 -1)📄 Description
Linked issue
Refs #7371. It covers the two remaining gaps the maintainer approved in that thread. #7373 already closes the issue itself.
Why this change
These are two more ways a scene change was never asked about after a reply:
What changed
getSceneChecksends every message since the last check: at least the interval, as before, and at most twice the interval after missed checks (aponytail:note says Re-scan scenes covers a longer backlog). When checks fire on time, the window is unchanged.previous, the last message the previous check saw.sceneCheckTranscript()puts it first, markedalreadyChecked: true, for the standalone Helper call, the shared presence call and the tracker-bundled call. A bundled tracker only gets it when that message is already in its audience's view, the same rule its window follows. The commit accepts an ending on that message.SCENE_CHECK_PROMPTexplainsalreadyChecked, saying to report it only when the next message starts a new scene. It also names switches to characters elsewhere and scene-break lines such as***.docs/agents/memory.mdand CHANGELOG describe the new window.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence (the boxes above are for a human):
pnpm checkpassed locally.alreadyChecked. A scene change at the first new message ends the scene on #2. Without this change, the window was[4, 5]and nothing came before it.alreadyCheckedentry. The suite's Helper mock ignoresalreadyChecked, as the prompt instructs.Manual verification notes
alreadyCheckedmessage.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)One CHANGELOG entry, one help-text change, and one docs paragraph, which is added to #7372.
UI evidence (if applicable)
Help text only.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.