mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6396] [MERGED] fix: Roleplay continuation and persona dice targets #7161
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#7161
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/6396
Author: @SpicyMarinara
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/roleplay-command-regressions📝 Commits (4)
73cea9dchore: start Roleplay command regression fixesaa9caeeMerge remote-tracking branch 'origin/staging' into codex/roleplay-command-regressions9320f85fix: keep Roleplay continuations inline and allow persona dice targets76b59c1fix: use native whitespace trimming for message continuation📊 Changes
11 files changed (+300 additions, -62 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
e2e/roleplay-commands.e2e.ts(+200 -16)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+36 -26)📝
packages/client/src/hooks/use-generate.ts(+16 -1)📝
packages/client/src/stores/chat.store.ts(+13 -1)📝
packages/server/src/routes/generate.routes.ts(+13 -2)📝
packages/server/src/services/generation/roleplay-commands.ts(+1 -1)📝
packages/server/src/services/generation/roleplay-summary-runtime.ts(+1 -15)📝
packages/shared/src/index.ts(+1 -0)➕
packages/shared/src/utils/message-continuation.ts(+12 -0)📝
scripts/regressions/prompt.regression.ts(+4 -0)📄 Description
Linked issue
Closes #6394.
Closes #6395.
Why this change
Roleplay
/continuealready sends the target message ID and saves into that reply, but its live text was rendered as a separate message. Empty sends should still create a new reply. Narrator dice commands also rejected the user persona because only bot characters were offered and resolved as targets.What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated results:
pnpm check,pnpm regression:prompt, and the existing Roleplay command Node regressions passed. Twenty-one focused browser checks passed across desktop Chromium, mobile Chromium, and mobile WebKit. After review adjustments, the continuation checks passed again in all three browsers, including a full-message editor SSE replay. After CodeQL flagged a legacy whitespace regex in the moved helper, native trimming replaced it; the prompt regressions (including whitespace preservation) andpnpm checkpassed again. The existing unrelated GameNarration hook-dependency lint warning remains.The browser proof checks
/continue,/cont, both newline preferences, empty sends, switching away during streaming, reloads, stored message IDs/counts, native and textual dice commands, persona attributes, inline dice after reload/translation, existing command permissions/private state, and VN regeneration. Baseline checks failed on the separate live continuation bubble and missing persona targets. Local CodeRabbit reviewed the initial ten-file patch; its one minor windowing finding was addressed by reopening the latest transcript window when an explicit continuation begins, while preserving hidden-message visibility.Manual verification notes
Claim boundary: generation and persistence tests use a deterministic local model endpoint; the editor case replays its full-message SSE contract rather than invoking an installed agent. Mobile checks use device emulation. Real external model behavior, downloadable editors, and physical devices were not exercised.
Docs and release impact
The Unreleased changelog includes both fixes. No user-facing labels, documentation, translations, dependencies, or release version files changed.
UI evidence (if applicable)
Before/after screenshots and regression/review logs.
Summary by CodeRabbit
New Features
/continueand/contcommands now stream directly into the latest reply.Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.