mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6968] [MERGED] fix(roleplay): keep Merged and Individual narration in sync #7410
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#7410
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/6968
Author: @SpicyMarinara
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/narrator-mode-sync📝 Commits (5)
78b66f6fix(roleplay): keep narration mode identity and context in syncc8a2aadMerge remote-tracking branch 'origin/staging' into fix/narrator-mode-syncf98b953Merge remote-tracking branch 'origin/staging' into fix/narrator-mode-sync2aa373fdocs(changelog): drop repeated entriesf0c8cf8Merge remote-tracking branch 'origin/staging' into fix/narrator-mode-sync📊 Changes
9 files changed (+329 additions, -21 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)➕
e2e/group-narration-mode-sync.e2e.ts(+122 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+3 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+13 -9)📝
packages/server/src/routes/chats.routes.ts(+6 -2)📝
packages/server/src/routes/generate.routes.ts(+17 -8)📝
packages/server/src/routes/generate/generate-route-utils.ts(+2 -1)📝
packages/shared/src/types/chat.ts(+5 -0)➕
scripts/regressions/group-narration-mode-sync.regression.ts(+159 -0)📄 Description
Linked issue
Closes #6959
Why this change
In Roleplay group chats, switching between Merged Narrator and Individual could leave the prompt's identity ("You are X") and its context order disagreeing. I found two ways that happened:
What changed
normalizeGroupChatMode, where anything other than"individual"means Merged, the documented default. It's used by generation, the metadata route, the prompt preview,ChatAreaand the drawer.Worth knowing: in Merged mode,
{{char}}still means the first active character, by design. So "You are Joe Smith" is expected in Merged mode when Joe is listed first. If the merged prompt should name a narrator instead, that's a separate design change.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What I ran (not a replacement for the checklist):
Checks:
pnpm checkandpnpm regression:promptpass, and 22 group-chat, Roleplay and memory regressions pass.New
group-narration-mode-sync.regression.ts:1,"Individual","bogus"andnull, plus the reporter's exact chat data.merged continue: Merged keeps the narrator identity — actual 'Jane Doe', expected 'Joe Smith'.New
e2e/group-narration-mode-sync.e2e.ts(desktop): holds the mode save, sends a message, and checks the reply waits for the save. It fails with the client change undone.Local CodeRabbit: 1 finding, fixed. The CHANGELOG had repeated entries from merging staging, including one already repeated on staging, and now has one of each.
To check by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG entry only.
UI evidence (if applicable)
No visual change; the toggle now waits for its save.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.