[GH-ISSUE #3850] [Issue]: Regenerating group RP messages includes only one character profile #2080

Closed
opened 2026-10-21 05:45:12 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3850

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In RP mode group chats, regenerating a message builds the prompt with only one active character's profile, even when multiple characters are active and the mode is Merged (Narrator). A [ ] Group prompt block also resolves to only one character.

Expected behavior

Regenerating a Merged (Narrator) group RP message should include the profiles of all active characters. A [ ] Group prompt block should resolve for all applicable group characters.

Actual behavior

The regenerated prompt includes only a single character's profile, and a [ ] Group prompt block resolves for only one character.

Steps to reproduce

  1. Create or open an RP mode group chat with multiple active characters.
  2. Set the group mode to Merged (Narrator).
  3. Regenerate a group chat message.
  4. Observe that the prompt includes only one character's profile.
  5. Use a [ ] Group block in the prompt and observe that it resolves for only one character.

Environment

  • Marinara Engine version: 2.3.3 + staging
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided.

Additional context

Possible cause: during regeneration, the server copies the original group message's characterId into input.forCharacterId. This becomes promptTargetCharacterId, after which resolvePromptCharacterIdsForTarget() may reduce the prompt profile list to that single character.

Discord thread: [Bug] Regenerate for Group RP message only builds prompt with single character's profile
Discord thread link: https://discord.com/channels/1417099416812392641/1528563698292101191
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-20T00:46:25.013Z] Pal: ME ver: 2.3.3 + staging
Regnereating RP mode group chat messages seems to only include the character profile for a single character, even when mutliple are active and mode is Merged (Narrator).
Using a [ ] Group block in a prompt also seems to only resolve for a single character.

May be because during regenerate, server copies the original group message’s `characterId` into `input.forCharacterId`. That becomes `promptTargetCharacterId`, and `resolvePromptCharacterIdsForTarget()` reduces the prompt profile list to that one character.
[Discord message: https://discord.com/channels/1417099416812392641/1528563698292101191/1528563698292101191]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3850 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In RP mode group chats, regenerating a message builds the prompt with only one active character's profile, even when multiple characters are active and the mode is Merged (Narrator). A `[ ] Group` prompt block also resolves to only one character. ## Expected behavior Regenerating a Merged (Narrator) group RP message should include the profiles of all active characters. A `[ ] Group` prompt block should resolve for all applicable group characters. ## Actual behavior The regenerated prompt includes only a single character's profile, and a `[ ] Group` prompt block resolves for only one character. ## Steps to reproduce 1. Create or open an RP mode group chat with multiple active characters. 2. Set the group mode to Merged (Narrator). 3. Regenerate a group chat message. 4. Observe that the prompt includes only one character's profile. 5. Use a `[ ] Group` block in the prompt and observe that it resolves for only one character. ## Environment - Marinara Engine version: 2.3.3 + staging - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. ## Additional context Possible cause: during regeneration, the server copies the original group message's `characterId` into `input.forCharacterId`. This becomes `promptTargetCharacterId`, after which `resolvePromptCharacterIdsForTarget()` may reduce the prompt profile list to that single character. Discord thread: [Bug] Regenerate for Group RP message only builds prompt with single character's profile Discord thread link: https://discord.com/channels/1417099416812392641/1528563698292101191 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-20T00:46:25.013Z] Pal: ME ver: 2.3.3 + staging Regnereating RP mode group chat messages seems to only include the character profile for a single character, even when mutliple are active and mode is Merged (Narrator). Using a [ ] Group block in a prompt also seems to only resolve for a single character. May be because during regenerate, server copies the original group message’s `characterId` into `input.forCharacterId`. That becomes `promptTargetCharacterId`, and `resolvePromptCharacterIdsForTarget()` reduces the prompt profile list to that one character. [Discord message: https://discord.com/channels/1417099416812392641/1528563698292101191/1528563698292101191] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:12 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 20, 2026):

@SpicyMarinara is taking this. I traced the narrowing to regeneration restoring the saved character target even for merged Roleplay groups; targeted individual generation will remain unchanged.

<!-- gh-comment-id:5020079745 --> @SpicyMarinara commented on GitHub (Jul 20, 2026): @SpicyMarinara is taking this. I traced the narrowing to regeneration restoring the saved character target even for merged Roleplay groups; targeted individual generation will remain unchanged.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 20, 2026):

Addressed in #3853 and merged into staging.

<!-- gh-comment-id:5020383625 --> @SpicyMarinara commented on GitHub (Jul 20, 2026): Addressed in #3853 and merged into staging.
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#2080
No description provided.