mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6472] [MERGED] fix: bound Advanced Memory recall for main Roleplay replies #7193
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#7193
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/6472
Author: @SpicyMarinara
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept20-memory-recall-runtime📝 Commits (2)
d067532chore: start focused advanced memory recall fix (#6471)8416a46fix: bound main Roleplay recall and defer scene archiving📊 Changes
20 files changed (+726 additions, -528 deletions)
View changed files
📝
CHANGELOG.md(+4 -1)📝
docs/agents/memory.md(+12 -9)📝
e2e/advanced-memory.e2e.ts(+63 -0)📝
packages/client/src/components/chat/AdvancedMemorySettings.tsx(+15 -0)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+5 -3)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+13 -1)📝
packages/client/src/components/chat/RoleplayHUDActionsMenu.tsx(+23 -2)📝
packages/client/src/localization/locales/en.json(+5 -2)📝
packages/server/src/routes/generate.routes.ts(+8 -93)📝
packages/server/src/routes/generate/dry-run-route.ts(+7 -2)📝
packages/server/src/services/advanced-memory.ts(+141 -106)📝
packages/server/src/services/prompt/advanced-memory-prompt.ts(+3 -3)📝
packages/shared/src/types/advanced-memory.ts(+1 -0)📝
scripts/regressions/advanced-memory-context.regression.ts(+2 -0)📝
scripts/regressions/advanced-memory-core.regression.ts(+10 -12)📝
scripts/regressions/advanced-memory-generation.regression.ts(+13 -29)📝
scripts/regressions/advanced-memory-history-start.regression.ts(+2 -2)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+228 -263)➕
scripts/regressions/advanced-memory-recall.regression.ts(+170 -0)📝
scripts/regressions/advanced-memory-summary.regression.ts(+1 -0)📄 Description
Linked issue
Closes #6471
Why this change
Advanced Memory could prepare and index history before a main reply, making generation appear stalled, and select repeated chunks without a meaningful scene limit. Recalled content needs to identify where the current turn begins and stay out of agent requests.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence:
pnpm checkpasses, including lint, localization, TypeScript and production builds. The follow-up local CodeRabbit review completed with zero findings. The production container built and returned HTTP 200 from/api/health.Manual verification notes
Published now at the maintainer's request so they can merge and test; subsequent valid CodeRabbit findings will be handled in a separate PR. Human checkboxes remain unchecked.
Manually verify on desktop and iPhone: the scene limit saves, a main reply streams, agents receive no recalled blocks, and a detected scene ending appears as Advanced Recall in the Agents menu. Verify mobile/light/dark layout and error/resume controls. Existing saved summaries should be reusable without resetting memory.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated the Unreleased changelog and
docs/agents/memory.md. Translation follow-up: #6467. No version bump or archive reset.UI evidence (if applicable)
Local browser evidence is unavailable because the required Playwright binaries are absent. This PR was published early at the maintainer's explicit request.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.