mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6500] [MERGED] fix: reset Advanced Recall context and repair scene access #7203
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#7203
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/6500
Author: @SpicyMarinara
Created: 9/21/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept21-scene-check-cadence📝 Commits (3)
71890fcdocs: track Advanced Memory scene check visibility fix90468cafix: preserve scene knowledge and allow access corrections8e4f019fix: reset Advanced Memory context at scene boundaries📊 Changes
17 files changed (+825 additions, -78 deletions)
View changed files
📝
CHANGELOG.md(+8 -0)📝
e2e/advanced-memory.e2e.ts(+34 -1)📝
e2e/core-flows.e2e.ts(+71 -0)📝
packages/client/index.html(+1 -1)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+64 -2)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+1 -0)📝
packages/client/src/hooks/use-advanced-memory.ts(+5 -1)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/server/src/routes/advanced-memory.routes.ts(+10 -2)📝
packages/server/src/routes/generate.routes.ts(+22 -7)📝
packages/server/src/services/advanced-memory.ts(+186 -51)📝
packages/server/src/services/prompt/advanced-memory-prompt.ts(+9 -1)📝
packages/shared/src/types/advanced-memory.ts(+8 -1)📝
scripts/regressions/advanced-memory-core.regression.ts(+166 -1)📝
scripts/regressions/advanced-memory-history-start.regression.ts(+143 -4)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+63 -6)📝
scripts/regressions/prompt.regression.ts(+30 -0)📄 Description
Linked issue
Closes #6499. Closes #6501. Closes #6502. Closes #6503.
Implementation owner: SpicyMarinara / Codex.
Why this change
Advanced Recall scene checks could disappear from the Agents menu when the main reply's stream closed. A later personal start flag also removed earlier scenes from a character's archive, despite an earlier confirmed knowledge start. The automatic context cutoff kept a near-full sliding window instead of resetting to the current scene and leaving room to grow. The scene inspector had no way to correct character access without processing the archive again. Empty recall markers added prompt spacing, and the page viewport disabled native image zoom in app shells that honor its scale restrictions.
What changed
No archive reset, storage migration or new dependency is needed. This does not infer scene participants from prose or retroactively restore missing hide flags; manual scene access corrections address existing misassignments.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence (checkboxes remain human verification tasks):
pnpm checkpassed: localization, formatting, lint, types and production builds. One pre-existing GameNarration hook warning remains.pnpm regression:promptpassed, including exact empty-marker formatting in XML/Markdown/plain formats and grouped/ungrouped prompts.Input.synthesizePinchGesturedid not zoom even a blank page. The test now dispatches two touch contacts through Chromium; the exact updated viewer test passes in Linux Chromium and local mobile Chromium/WebKit. It does not mock the native zoom assertion.Manual verification notes
Manually verify on the original iPhone app: open a saved scene, use Edit character access to replace the incorrect character, save, and generate for each character without resetting memory. Confirm personal POV flags trim live messages while earlier eligible scenes remain available, and the narrator retains access. Confirm reaching the context cap resets to the latest scene, then holds that visible cutoff while the conversation grows to the cap again. Confirm a five-message standalone check appears after the reply in Agents. Open a chat image and pinch with two fingers.
Local proof uses synthetic fixture chats, isolated databases and mock providers. Private chat/memory exports are not included in this PR or uploaded for review. Physical iPhone pinch behavior and the original live chat remain manual verification items.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedFive Unreleased entries and localized English labels/help for the audience editor. No version or user-facing docs changes.
UI evidence (if applicable)
Browser tests capture light/dark scene-access controls and post-generation Advanced Recall activity. Mobile Chromium drives a real native touch pinch; WebKit verifies the viewer and viewport/layout behavior. Physical iPhone two-finger pinch is not automated by this suite.
Downloadable UI proof gallery contains the captured fixture screenshots.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.