mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6494] [MERGED] fix: preserve saved prompts and character-scoped memory summaries #7201
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#7201
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/6494
Author: @SpicyMarinara
Created: 9/21/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept21-peek-prompt-character📝 Commits (3)
370ed1bdocs: track message-bound prompt inspection fix5b1c2eafix: preserve saved message prompts and summary-owned hidden constants18033f5fix: honor character conditions in advanced memory constants📊 Changes
10 files changed (+452 additions, -159 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
e2e/advanced-memory.e2e.ts(+83 -0)📝
e2e/core-flows.e2e.ts(+5 -0)📝
packages/client/src/components/chat/ChatConversationSurface.tsx(+1 -1)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+6 -4)📝
packages/client/src/components/chat/ConversationView.tsx(+4 -4)📝
packages/server/src/routes/chats.routes.ts(+3 -7)📝
packages/server/src/services/advanced-memory.ts(+144 -111)📝
scripts/regressions/advanced-memory-generation.regression.ts(+106 -2)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+96 -30)📄 Description
Linked issue
Closes #6493. Closes #6495. Implementation owner: SpicyMarinara / Codex.
Why this change
Reopening Peek Prompt from Maukie's reply after an Illustrator image or summary update could show a newly assembled request for the narrator instead. Advanced Memory also omitted enabled Chat Summaries based on access to their original message ranges, even when the summaries explicitly contained a section for Maukie. On mobile, a second tap on Author's Notes reopened the panel immediately after closing it.
What changed
{{#if …}}conditions for character visibility. Raw hidden messages and recalled archives retain their access checks; historical generation still excludes future summary ranges.No archive reset, migration, new dependency or separate summary mechanism is needed.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence (checkboxes remain human verification tasks):
pnpm checkandpnpm regression:promptpassed. The check includes localization, formatting, lint, types and production builds; one pre-existing GameNarration hook warning remains.Proof boundary
Core claims are stable inspection of the actual saved request, authored character conditions controlling constants, and a working mobile panel toggle. Prompt assembly and historical inspection are the risk boundaries. Tests cover ranged and legacy constants, distinct sections within one summary, new and compacted constants, late image/metadata updates, active and missing swipe caches, and future-range exclusion. Raw source visibility remains separate from constant visibility. The original chat, physical iPhone and live provider output have not been tested.
Manual verification notes
Manually verify Maukie's original chat on iPhone: generate with the enabled conditional summaries, inspect that reply, wait for Illustrator, and inspect it again. Confirm the saved character, commands and constants do not change. Verify Maukie and Pantalone receive their respective sections, and newly generated constants have editable character conditions in Chat Summaries. Tap Author's Notes twice to open and close it. Local verification used isolated fixture chats and databases.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedThree Unreleased changelog entries; no user-facing documentation, version metadata or localized copy changed.
UI evidence (if applicable)
Existing message actions, prompt modal and Author's Notes panel are reused. Browser tests capture light/dark screenshots for saved-prompt inspection in both modes on all three projects. Desktop light and mobile WebKit dark Roleplay screenshots were visually inspected. Failing-then-passing behavioral tests cover the missing constants and mobile Author's Notes toggle.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.