mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6617] [MERGED] feat(roleplay): private inline whispers for characters and persona #7255
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#7255
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/6617
Author: @SpicyMarinara
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/roleplay-whisper📝 Commits (4)
abf1281docs: track private roleplay whisper featureeb31e83feat(roleplay): add private inline whispers for characters and persona01cea4fMerge remote-tracking branch 'origin/staging' into codex/roleplay-whisper1f66a52fix(roleplay): preserve whisper ordering and accessible reveal controls📊 Changes
16 files changed (+879 additions, -97 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/roleplay/getting-started.md(+8 -0)📝
e2e/roleplay-commands.e2e.ts(+177 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+63 -31)📝
packages/client/src/components/chat/RoleplayCommandResults.tsx(+87 -30)📝
packages/client/src/components/chat/RoleplayCommandsSettings.tsx(+6 -4)📝
packages/client/src/lib/dice-roll-result.ts(+6 -18)📝
packages/client/src/localization/locales/en.json(+8 -1)📝
packages/server/src/routes/generate.routes.ts(+36 -4)📝
packages/server/src/routes/generate/conversation-prompt-formatting.ts(+5 -3)📝
packages/server/src/routes/generate/dry-run-route.ts(+25 -2)📝
packages/server/src/services/generation/roleplay-commands.ts(+87 -2)📝
packages/shared/src/types/chat.ts(+1 -0)📝
packages/shared/src/types/roleplay-command.ts(+51 -2)📝
scripts/regressions/roleplay-commands.regression.ts(+55 -0)➕
scripts/regressions/roleplay-whisper-generation.regression.ts(+262 -0)📄 Description
Linked issue
Closes #6616
Why this change
Roleplay characters and narrators need to share a secret or vision with one recipient without teaching it to everyone in the chat.
[whisper: character="name" text="the secret"]now keeps that fragment private in prompts and renders it where the command appeared.What changed
Secrets follow the active message swipe and selected history; they are not copied into shared summaries or a separate durable memory store.
Validation
Agent-run verification:
pnpm check,pnpm version:check, andpnpm regression:promptpassed.Dockerfile.litebuilt and ran: health and UI returned HTTP 200; the compiled prompt helper passed recipient/narrator isolation checks.pnpm check,pnpm regression:prompt, the command/generation regressions, and 18 whisper/dice browser scenarios passed again. All required GitHub checks and the hosted CodeRabbit review passed on1f66a52cfbefore merging tostagingasdd876831a. The broader regression/platform reruns were still in progress at merge; the previous complete regression matrix passed on01cea4f7a.The advisory docstring-coverage check was inconclusive. Privacy and positioning rules are documented at their helpers and in the user guide; existing self-explanatory functions were not padded with boilerplate to meet a percentage target.
Human checklist (left unchecked):
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify the Whisper toggle and All / Narrator selector in Chat Settings → Agents → Commands. Generate a whisper to another character and one to your persona; confirm their positions (including between paragraphs), reveal/hide behavior, and their order in each character's Peek Prompt. Check Classic and Visual Novel on desktop and mobile. Automated browser evidence above is separate from this human checklist.
Docs and release impact
Updated the Roleplay getting-started guide, canonical English UI catalog, and Unreleased changelog. Translated documentation follow-up: #6619. No version bump.
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
Default-off settings and concealed/revealed screenshots, including desktop/mobile, light/dark, Classic/Visual Novel, and persona visibility. Download the self-contained HTML to view the original PNG screenshots; fixtures contain synthetic data only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.