mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7389] [MERGED] fix(roleplay): leave whisper-only messages out for characters they don't reach #7712
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#7712
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/7389
Author: @SpicyMarinara
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/whisper-only-hidden-from-others📝 Commits (4)
79ad435fix(roleplay): leave whisper-only messages out for characters they don't reach55aedccfix(roleplay): keep documents, shared notes and prefills when hiding a whisper-only message6af16c3perf(roleplay): check only the latest user turn for a whisper-only input3799040Merge remote-tracking branch 'origin/staging' into fix/whisper-only-hidden-from-others📊 Changes
6 files changed (+143 additions, -24 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/generate.routes.ts(+4 -1)📝
packages/server/src/routes/generate/dry-run-route.ts(+9 -2)📝
packages/server/src/services/generation/prompt-message-scope.ts(+19 -0)📝
packages/server/src/services/generation/roleplay-commands.ts(+45 -21)📝
scripts/regressions/roleplay-user-private-generation.regression.ts(+65 -0)📄 Description
Linked issue
Closes #7388
Why this change
[whisper: character="Maukie" text="..."]) showed asMari: [Private whisper]in every other character's prompt. That told the other characters the persona was there and talking, which spoils scenes such as sneaking up on someone. Mari reported this right after #7381, which made the same placeholder appear with Advanced Memory on too.conversationPromptHistoryContentrenders a whisper-only message as the[Private whisper]placeholder soappendRoleplayWhispershas a message to attach the whisper to. Nothing removed it for characters who get no whisper from it.What changed
appendRoleplayWhispers(roleplay-commands) first drops whisper-only messages (roleplayWhisperOnlyMessageIds) that deliver no whisper to this viewer, then inserts whisper text as before. The recipient and the appointed narrator keep the message. With no private viewer, as in merged group chats, nobody gets it. The live request and Peek Prompt both run this step.dropPromptHistoryMessages(prompt-message-scope) removes history messages in place and moves the<chat_history>/<last_message>wrappers (and the Markdown equivalents) to what is left, using the existingreassignHistoryLastMessageWrapper. It removes only history entries left empty, so a reasoning-only assistant prefill stays. Dropping happens before any whisper text is inserted, so re-wrapping never meets whisper fragments.[document]stays visible to everyone; only its whisper is private.{{input}}, memory-recall queries and the Illustrator's prompt text get no text from a whisper-only turn (latestRoleplayUserInput), live and in Peek Prompt. Before, they got[Private whisper].[Private whisper](never the text). They aren't characters, and Smart order can use the signal that someone whispered. Say if agents should drop it too.roleplay-user-private-generation): a whisper-only message to Bob. Alice's Peek Prompt (also when impersonating) and live request contain neither the secret nor[Private whisper, with the last message and chat history each wrapped once, both while the whisper is the latest message and after a later reply. Bob and the narrator still receive it. Fails on staging with "no trace for others". Further cases: a shared note, a public document,{{input}}, and an empty reasoning prefill. Each fails without its own fix.Review
{{input}}. Fixed.{{input}}(no worse than staging, fixed anyway because it is the same exposure) and continuing a character's whisper-only reply (intended).Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
pnpm check;node ./scripts/run-regressions.mjs --filterfor roleplay-user-private-generation, roleplay-whisper-hidden-recipient, roleplay-whisper-generation, roleplay-user-private-storage, roleplay-user-private-memory, roleplay-commands, roleplay-interrupt-generation, advanced-memory-visibility, advanced-memory-generation, advanced-memory-context and prompt (all pass).Manual verification notes
[whisper: character="<name>" text="..."], then open Peek Prompt for another character and check the message is not there at all.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG
[Unreleased]has an entry. No user docs change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.