[PR #7327] [MERGED] fix(group-chat): keep Roleplay turn prompt to the reply-as reminder #7679

Closed
opened 2026-10-24 04:06:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7327
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/7319-rp-group-turn-prompt


📝 Commits (1)

  • 510f4c1 fix(group-chat): keep Roleplay turn prompt to the reply-as reminder

📊 Changes

3 files changed (+23 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/generate.routes.ts (+4 -1)
📝 scripts/regressions/group-mention-routing.regression.ts (+18 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7319

Why this change

  • In Roleplay group chats where characters reply one by one, Chat Settings → Add Turn To Prompt added two instructions: the reminder "Respond ONLY as {{char}}." and a Conversation-style line, "You may address another group member with @Name to invite their next reply...". Models followed the second one, so Roleplay replies ended with out-of-place pings such as @YourPersona. Turning the switch off removed the ping line but also the reminder users want to keep.
  • Maintainer direction in the issue: "no clue why this is in roleplay mode. Should just be reply as {{char}}."

What changed

  • packages/server/src/routes/generate.routes.ts: the @Name handoff invitation is now added only in Conversation chats. Roleplay's turn instruction is just the existing "Respond ONLY as {{char}}." reminder. Game never had either line, so it is unchanged.
  • Routing is unchanged: if a Roleplay reply does write @Name on its own, that character still moves up the queue, as #6567 added and group-mention-routing.regression.ts pins.
  • scripts/regressions/group-mention-routing.regression.ts: added checks that Roleplay prompts and the prompt saved for Peek Prompt keep the reminder and have no @Name instruction, and that Conversation prompts still have it. The new checks fail without the fix.
  • CHANGELOG.md: one [Unreleased] entry.
  • No UI copy changed. The switch's description ("Each individual turn includes a short responding-character instruction.") is still accurate.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify in a Roleplay group chat (Individual mode, Add Turn To Prompt on) that Peek Prompt shows Respond ONLY as <character name>. and no @Name to invite their next reply line.
  • Manually verify that a few Roleplay group replies no longer end with an @-ping of the persona or another character.
  • Manually verify in a Conversation group chat (Individual mode, Add Turn To Prompt on) that Peek Prompt still shows the @Name invitation and that @mentions still hand the next reply to that character.
  • Manually verify that turning Add Turn To Prompt off in Roleplay still removes the "Respond ONLY as" reminder.

Agent-run checks: node ./scripts/run-regressions.mjs --filter scripts/regressions/group-mention-routing.regression.ts passes with the fix and fails on "Roleplay never asks for @-pings (#7319)" with the server change reverted. node ./scripts/run-regressions.mjs --filter scripts/regressions/group-narration-mode-sync.regression.ts passes. pnpm check passes (exit 0). pnpm regression:prompt passes (exit 0). Local CodeRabbit (coderabbit review --agent --committed) finished with 0 findings. No browser or manual app testing was done by the agent.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No docs/ page describes this instruction, so no docs or docs-i18n follow-up is needed. CHANGELOG entry added.

UI evidence (if applicable)

Not applicable: prompt text only, no UI change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7327 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/7319-rp-group-turn-prompt` --- ### 📝 Commits (1) - [`510f4c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/510f4c11772fa94e06359fee9936c464088bf71f) fix(group-chat): keep Roleplay turn prompt to the reply-as reminder ### 📊 Changes **3 files changed** (+23 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+4 -1) 📝 `scripts/regressions/group-mention-routing.regression.ts` (+18 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7319 ## Why this change - In Roleplay group chats where characters reply one by one, **Chat Settings → Add Turn To Prompt** added two instructions: the reminder "Respond ONLY as {{char}}." and a Conversation-style line, "You may address another group member with @Name to invite their next reply...". Models followed the second one, so Roleplay replies ended with out-of-place pings such as `@YourPersona`. Turning the switch off removed the ping line but also the reminder users want to keep. - Maintainer direction in the issue: "no clue why this is in roleplay mode. Should just be reply as {{char}}." ## What changed - `packages/server/src/routes/generate.routes.ts`: the @Name handoff invitation is now added only in Conversation chats. Roleplay's turn instruction is just the existing "Respond ONLY as {{char}}." reminder. Game never had either line, so it is unchanged. - Routing is unchanged: if a Roleplay reply does write `@Name` on its own, that character still moves up the queue, as #6567 added and `group-mention-routing.regression.ts` pins. - `scripts/regressions/group-mention-routing.regression.ts`: added checks that Roleplay prompts and the prompt saved for **Peek Prompt** keep the reminder and have no @Name instruction, and that Conversation prompts still have it. The new checks fail without the fix. - `CHANGELOG.md`: one `[Unreleased]` entry. - No UI copy changed. The switch's description ("Each individual turn includes a short responding-character instruction.") is still accurate. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify in a Roleplay group chat (Individual mode, **Add Turn To Prompt** on) that **Peek Prompt** shows `Respond ONLY as <character name>.` and no `@Name to invite their next reply` line. - Manually verify that a few Roleplay group replies no longer end with an @-ping of the persona or another character. - Manually verify in a Conversation group chat (Individual mode, **Add Turn To Prompt** on) that **Peek Prompt** still shows the @Name invitation and that @mentions still hand the next reply to that character. - Manually verify that turning **Add Turn To Prompt** off in Roleplay still removes the "Respond ONLY as" reminder. Agent-run checks: `node ./scripts/run-regressions.mjs --filter scripts/regressions/group-mention-routing.regression.ts` passes with the fix and fails on "Roleplay never asks for @-pings (#7319)" with the server change reverted. `node ./scripts/run-regressions.mjs --filter scripts/regressions/group-narration-mode-sync.regression.ts` passes. `pnpm check` passes (exit 0). `pnpm regression:prompt` passes (exit 0). Local CodeRabbit (`coderabbit review --agent --committed`) finished with 0 findings. No browser or manual app testing was done by the agent. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No `docs/` page describes this instruction, so no docs or `docs-i18n` follow-up is needed. CHANGELOG entry added. ## UI evidence (if applicable) Not applicable: prompt text only, no UI change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:28 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7679
No description provided.