mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7412] [MERGED] fix(roleplay): let a whisper typed into a reply go to the persona #7719
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#7719
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/7412
Author: @SpicyMarinara
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/typed-whisper-persona📝 Commits (5)
eb8268afix(roleplay): let a whisper typed into a reply go to the persona8ba4bebMerge branch 'staging' into fix/typed-whisper-persona91ebc98fix(roleplay): open a failed private command's notice by defaulte9dde58docs(changelog): tighten the typed whisper entry7a6754bMerge branch 'staging' into fix/typed-whisper-persona📊 Changes
5 files changed (+67 additions, -8 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/chat/RoleplayCommandResults.tsx(+2 -1)📝
packages/server/src/services/generation/roleplay-commands.ts(+12 -3)📝
packages/server/src/services/storage/chats.storage.ts(+15 -3)📝
scripts/regressions/roleplay-user-private-generation.regression.ts(+37 -1)📄 Description
Linked issue
Closes #7411
Why this change
[whisper: character="Mari" text="…"], with Mari as the chat's persona. The text parsed fine (467 characters), but the whisper was saved withroleplay.commands.errors.whisperRecipient. A whisper with an error never renders inline, so its text vanished.prepareUserRoleplayCommands, which resolves the recipient against the chat's characters only. A reply's own whispers go throughresolveRoleplayWhisperRecipient, which also includes the persona. So a whisper to the persona typed into a character's or the narrator's reply always failed.What changed
prepareUserRoleplayCommandstakes an optionalpersona. With it, the recipient is resolved byresolveRoleplayWhisperRecipient, the same resolver generation uses. Without it, behaviour is unchanged.updateMessageContentpasses the chat's persona only when a person edits a message that isn't theirs (authoredand role notuser). The persona comes fromresolveChatUserIdentity, with generation's{ id: "user", name: "User" }fallback when the chat has none, so a typed whisper gets the same recipient as one the reply wrote.Typed whispers in your own messages still go to characters only, and generated rewrites still never read tags.
Regression (
roleplay-user-private-generation), failing on staging:[whisper: character=”Mari” text=”…”]with typographic quotes, saves a whisper to the persona, kept out of both other characters' prompts;RoleplayCommandResults: a failed whisper or notes notice now starts open. Before, it read only " used whisper command!", which looked like success, and the reason and original text sat behind a click. Room guests don't render these notices.Review (four lenses, two skeptics per finding, plus local CodeRabbit with no findings): no defect at head. Notes:
Not covered: in a multiplayer room, generation resolves room participants' personas. An edit outside a generation only knows the chat's persona.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
pnpm check, andnode ./scripts/run-regressions.mjs --filterfor the 17roleplay-*,prompt,message-edit-delete-racesandchat-message-css-securityregressions (all pass).Manual verification notes
[whisper: character="<persona name>" text="secret"]and save. The whisper shows inline as "Whisper to ", with its text visible to you.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.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.