mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6282] [MERGED] fix: sweep Roleplay commands, chat setup, mobile zoom and memory processing #7122
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#7122
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/6282
Author: @SpicyMarinara
Created: 9/17/2026
Status: ✅ Merged
Merged: 9/17/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/6267-6281-issue-sweep📝 Commits (4)
df5531bfix: clarify roleplay interruption guidanceca70e11fix: improve roleplay commands, mobile zoom, and scene helper limits38fd9a7fix: preserve selected chat characters and leading dice positions6a6d7cbtest: clean up the restart fixture tree after failed startup📊 Changes
21 files changed (+805 additions, -77 deletions)
View changed files
📝
CHANGELOG.md(+8 -0)📝
e2e/core-flows.e2e.ts(+57 -2)📝
e2e/issue-sweep-defaults.e2e.ts(+79 -0)📝
e2e/roleplay-commands.e2e.ts(+95 -21)📝
packages/client/src/components/chat/ChatMessage.tsx(+74 -18)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+6 -2)📝
packages/client/src/components/chat/RoleplayCommandResults.tsx(+110 -2)📝
packages/client/src/components/chat/RoleplayDocument.tsx(+10 -2)📝
packages/client/src/components/layout/AppShell.tsx(+3 -0)📝
packages/client/src/lib/dice-roll-result.ts(+32 -1)📝
packages/client/src/styles/roleplay-documents.css(+162 -0)📝
packages/server/src/routes/connections.routes.ts(+8 -2)📝
packages/server/src/routes/generate.routes.ts(+25 -2)📝
packages/server/src/services/advanced-memory.ts(+10 -3)📝
packages/server/src/services/generation/roleplay-commands.ts(+1 -1)📝
packages/shared/src/types/roleplay-command.ts(+5 -0)📝
scripts/regressions/advanced-memory-summary.regression.ts(+12 -0)📝
scripts/regressions/connection-test-parameters.regression.ts(+34 -0)📝
scripts/regressions/game-text-dice.regression.ts(+20 -5)📝
scripts/regressions/restart-supervisor.regression.ts(+14 -16)...and 1 more files
📄 Description
Roleplay command documents lacked variety, rolls appeared only in command details, mobile pinch zoom was mistaken for a keyboard resize, and Advanced Memory scene decisions could exhaust a hardcoded 1,024-token budget before producing an answer. This sweep gives each document occurrence one of three built-in styles per kind, inserts real dice cards at the saved command position, preserves the unzoomed layout during pinch zoom, and lets scene decisions use the connection's output cap or a 4,096-token default within the context limit.
Closes #6278, closes #6279, closes #6280, closes #6281, closes #6284. Owner: @SpicyMarinara; implementation by Codex.
Starting from a character card now preserves that explicit participant choice when saved wizard defaults are applied, in both Conversation and Roleplay. The revised interruption prompt is included verbatim. Document choices and dice positions are saved with message/swipe extras. Existing dice values, modifiers, animations and reduced-motion behavior are reused. Complete Markdown/HTML is parsed before display-only dice markers are replaced; saved prose and model prompts contain no markers. Edited or legacy replies retain their real rolls at the end if the original position cannot be identified. Translation-only display keeps each visible paragraph's dice after its translated prose.
Related triage:
docs-i18nin #6283.Validation:
pnpm checkpassed on the final code. The added card-selection/defaults and isolated language browser cases passed on all three browser targets (21 cases).Desktop and mobile browser screenshots.
Manual verification:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.