mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6551] [MERGED] Fix Roleplay dice styling, memory cutoffs, and POV summaries #7223
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#7223
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/6551
Author: @SpicyMarinara
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept22-roleplay-dice-memory-regressions📝 Commits (3)
73e823edocs: track roleplay dice and token display fixes9116baefix: roleplay dice, measured memory cutoffs and POV summariesd9e1d26test: align Game Peek assertion with reported usage label📊 Changes
18 files changed (+498 additions, -44 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
e2e/roleplay-commands.e2e.ts(+44 -1)📝
e2e/scene-tts-preferences.e2e.ts(+1 -1)📝
packages/client/src/components/chat/ChatMessage.tsx(+10 -2)📝
packages/client/src/components/chat/PeekPromptModal.tsx(+18 -1)📝
packages/client/src/components/chat/chat-area.types.ts(+2 -0)📝
packages/client/src/components/dice/dice.css(+2 -2)📝
packages/client/src/hooks/use-chats.ts(+2 -0)📝
packages/client/src/localization/locales/en.json(+5 -1)📝
packages/server/src/routes/generate.routes.ts(+10 -0)📝
packages/server/src/services/advanced-memory.ts(+108 -34)📝
packages/server/src/services/generation/generation-text-utils.ts(+13 -0)📝
packages/shared/src/types/chat.ts(+2 -0)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+123 -2)📝
scripts/regressions/advanced-memory-summary.regression.ts(+96 -0)📝
scripts/regressions/game-tool-controls.regression.ts(+3 -0)📝
scripts/regressions/game-tool-outcomes.regression.ts(+11 -0)➕
scripts/regressions/generation-usage.regression.ts(+44 -0)📄 Description
Linked issue
Closes #6550
Why this change
Roleplay dice outcomes were lavender with a blue accent. Peek Prompt also presented summed tool-request usage as one actual prompt: three requests near 45k input can bill roughly 133k without any one prompt crossing a 65k limit. Advanced Memory only checked its estimate, so genuinely underestimated input could exceed that limit without resetting the live history.
Switching POVs also needs more than a scene participant list: the summary helper must preserve which character knows each fact, using the existing character conditions.
What changed
{{#if char == "Name"}}instructions to Advanced Memory summary/compaction prompts in individual-character group chats. Preserve conditions in constants and resolve them before recalled summaries reach the responding character. Include the configured narrator in each knowledge section.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated/local evidence (checkboxes intentionally left for human verification):
pnpm check: passed, including localization, formatting, lint, types and production builds.pnpm regression:prompt: passed.requestCount > 1; moving the cutoff intofinallywould move live history past a newly closed scene even ifinitializeImpl(...closedOnly: true)failed to archive it. Scene-preparation errors deliberately leave the shared cutoff unchanged. The hosted review finding proposes the same error-path reset; it was reviewed and declined for this reason.commitSceneCheckImplcan persist a closed boundary beforeinitializeImplfinishes its summary, whileresetContextForActualInputselects those closed structural records. Running it after a preparation failure could cut history whose recap is not yet available. The existing error reporting and retry path is preserved.Manual verification notes
Inspected the captured desktop/mobile, light/dark screenshots. Browser and provider tests used synthetic chats and mocked responses, not the maintainer's archive or paid provider calls.
Manually verify native Anthropic Opus 5.5 usage on a real reply crossing the configured input limit, confirm the shared start flag can be cleared, and review the helper's factual POV assignments in a real story. Physical iPhone and Docker build/run were not tested locally.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (seeCONTRIBUTING.md)Added user-facing Unreleased notes. No storage migration, release metadata or user-facing documentation changes.
UI evidence (if applicable)
Before/after screenshots and mobile Peek Prompt evidence — standalone HTML containing only synthetic screenshots and explanatory text; no scripts.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.