[PR #178] [MERGED] Append "Respond ONLY as [name]" on group chat individual mode regens #4494

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/178
Author: @mm14141
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @SpicyMarinara

Base: main ← Head: append-respond-as-name-on-regen


📝 Commits (5)

  • 1d740eb Append "Respond ONLY as [name]" on group chat individual mode regens
  • 1c3c344 Merge branch 'Pasta-Devs:main' into append-respond-as-name-on-regen
  • 3709b24 Used cached regen message and validate
  • cc57a1d Fix possibly undefined on regenMsg validation
  • 6efabcf Change status code to 400 for missing character

📊 Changes

1 file changed (+19 additions, -3 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+19 -3)

📄 Description

Why this change

In group chats set to individual mode, the engine appends a "Respond ONLY as [name]" instruction on the initial generation of a message, but does not do so when regenerating, often causing the AI to play as only the first character in the group or multiple characters at once, inconsistent with the first generation.

What changed

  • In generate.routes.ts, before running the generation, if in a group chat, in individual mode, and regenerating, it appends the "Respond ONLY as [name]" instruction as it does for the individual loop.

Validation

  • pnpm check
  • Manual verification completed (describe below)

Manual verification notes

  • Verified group chat, individual mode regenerations have the instruction appended.
  • Verified that generations and regenerations weren't affected in conversations, 1-on-1 roleplays or in merged/narrator mode roleplays.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A


🔄 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/178 **Author:** [@mm14141](https://github.com/mm14141) **Created:** 4/22/2026 **Status:** ✅ Merged **Merged:** 4/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `append-respond-as-name-on-regen` --- ### 📝 Commits (5) - [`1d740eb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1d740eb579d719a7c35bc1a089df3806ebfd1750) Append "Respond ONLY as [name]" on group chat individual mode regens - [`1c3c344`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1c3c34454c7ec50957b8af7856f5b3a14d8182fe) Merge branch 'Pasta-Devs:main' into append-respond-as-name-on-regen - [`3709b24`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3709b24f290f153ff1eeae5e52fa2b7f1fadfe00) Used cached regen message and validate - [`cc57a1d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cc57a1d42c68ec95872e20b53a22c6bfeff2e105) Fix possibly undefined on regenMsg validation - [`6efabcf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6efabcf891d3138d095c0c63a44442326e35458b) Change status code to 400 for missing character ### 📊 Changes **1 file changed** (+19 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+19 -3) </details> ### 📄 Description ## Why this change In group chats set to individual mode, the engine appends a "Respond ONLY as [name]" instruction on the initial generation of a message, but does not do so when regenerating, often causing the AI to play as only the first character in the group or multiple characters at once, inconsistent with the first generation. ## What changed - In `generate.routes.ts`, before running the generation, if in a group chat, in individual mode, and regenerating, it appends the "Respond ONLY as [name]" instruction as it does for the individual loop. ## Validation - [x] `pnpm check` - [x] Manual verification completed (describe below) ### Manual verification notes - Verified group chat, individual mode regenerations have the instruction appended. - Verified that generations and regenerations weren't affected in conversations, 1-on-1 roleplays or in merged/narrator mode roleplays. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:06 +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#4494
No description provided.