[GH-ISSUE #6959] [Issue]: Narrator mode toggle desynchronizes prompt identity and context order #3899

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Toggling between Merged Narrator and Individual narration can update the prompt format without updating the context delivery order, or update the order without updating the prompt format. Repeated toggles may produce an incorrect narrator identity in the generated prompt.

Expected behavior

Changing the narration mode should consistently update both the prompt identity (such as the "You are X" text) and the context delivery order to match the selected mode.

Actual behavior

After repeated toggles, the prompt can use an individual character identity when Merged Narrator is selected, such as showing "You are Joe Smith" instead of the merged narrator prompt. New chats may also start in the broken state.

Steps to reproduce

  1. Log in and create a new Roleplay.
  2. Skip configuration.
  3. Add two or more characters without agents or a persona.
  4. Trigger generation and inspect the backend prompt, including the "You are X" text and optionally the prompt size.
  5. Switch between Merged Narrator and Individual narration.
  6. Trigger generation again and inspect the backend prompt.
  7. Repeat the mode switch and generation several times; observe that the prompt identity and context order can become inconsistent.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+12a0acd5b782, commit 12a0acd5b7)
  • Install type: Not provided
  • OS + version: Windows 10.0.22631 (x64) server; Windows 10.0 client
  • Browser or app shell: Firefox 156; issue also reproduced on Chrome

Logs, screenshots, or video

Support diagnostics: Active connection KoboldCPP (Gemma), connection provider openai, GPU ANGLE/NVIDIA GeForce GTX 980. No screenshots, video, or error logs were provided.

Additional context

The suspected cause may involve inconsistent branch data types or values for groupChatMode, such as groupChatMode being stored as an integer or as the string "individual" while the UI is in merged mode. Example branch data included: {"appliedChatPresetId":"vVfKQHCO1rePjYIdYgly1","groupChatMode":"individual","groupResponseOrder":"smart"}. Reference conversation: https://discord.com/channels/1417099416812392641/1495493775617687775/1555390723619033119

Discord thread: Narrator Mode Toggle for Merged Narrator vs Individual Breaks
Discord thread link: https://discord.com/channels/1417099416812392641/1555404060666892298
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (5 messages)
[2026-10-02T02:20:26.073Z] Mazu: Reference full conversation here: https://discord.com/channels/1417099416812392641/1495493775617687775/1555390723619033119

Nutshell: If you toggle between Merged Narrator and Individual narration, sometimes it will change the prompt build ("You are X"), but not the order for what context to deliver to the prompt - or the other way around.

` ` `
Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+12a0acd5b782
Commit: 12a0acd5b782
Server OS: Windows 10.0.22631 (x64)
Server memory: heap 351.1 / 4288 MiB; RSS 538.6 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: ended without shutting down - last alive 2026-10-02T01:46:10.879Z (up 1h 34m, RSS 333.8 MiB); device rebooted before next launch: unknown
Sessions ended without shutdown: 10 recorded
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Gecko/20100101 Firefox/156.0
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar
Active connection: KoboldCPP (Gemma)
Connection provider: openai
Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555404060666892298]

[2026-10-02T02:20:27.041Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555404064727244876]

[2026-10-02T02:27:24.995Z] Mazu: @Crimson Orc  - Recreated it on Chrome:

1) Login - Create a new Roleplay.
2) Skip config.
3) Add 2+ characters, no agents, no persona, etc
4) Trigger generation - Check backend: Note A) "You are X" prompt, and B) (Optional) Prompt size
5) Change merged <> individual mode
6) Trigger Generation - Check backened as above. It should be OK here.
7) Repeat from #5, but note that "You are X" is broken. 

In my case for #7, it was showing "You are Joe Smith" when it should been the merged narrator prompt.
[Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555405817753116693]

[2026-10-02T03:10:44.324Z] Mazu: New chats just start broken for me now. It could be a state issue within my local client that I'm stuck in - I have no idea
[Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555416720129396798]

[2026-10-02T03:12:24.752Z] Mazu: As far as I can tell, the big things are `groupChatMode`:integer? and `groupChatMode`:string within the branch data.

Example:
` ` `"appliedChatPresetId":"vVfKQHCO1rePjYIdYgly1",
"groupChatMode":"individual",
"groupResponseOrder":"smart",
` ` ` (but it's merged instead)
[Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555417141354831973]

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 (Oct 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6959 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Toggling between Merged Narrator and Individual narration can update the prompt format without updating the context delivery order, or update the order without updating the prompt format. Repeated toggles may produce an incorrect narrator identity in the generated prompt. ## Expected behavior Changing the narration mode should consistently update both the prompt identity (such as the "You are X" text) and the context delivery order to match the selected mode. ## Actual behavior After repeated toggles, the prompt can use an individual character identity when Merged Narrator is selected, such as showing "You are Joe Smith" instead of the merged narrator prompt. New chats may also start in the broken state. ## Steps to reproduce 1. Log in and create a new Roleplay. 2. Skip configuration. 3. Add two or more characters without agents or a persona. 4. Trigger generation and inspect the backend prompt, including the "You are X" text and optionally the prompt size. 5. Switch between Merged Narrator and Individual narration. 6. Trigger generation again and inspect the backend prompt. 7. Repeat the mode switch and generation several times; observe that the prompt identity and context order can become inconsistent. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+12a0acd5b782, commit 12a0acd5b782) - Install type: Not provided - OS + version: Windows 10.0.22631 (x64) server; Windows 10.0 client - Browser or app shell: Firefox 156; issue also reproduced on Chrome ## Logs, screenshots, or video Support diagnostics: Active connection KoboldCPP (Gemma), connection provider openai, GPU ANGLE/NVIDIA GeForce GTX 980. No screenshots, video, or error logs were provided. ## Additional context The suspected cause may involve inconsistent branch data types or values for groupChatMode, such as groupChatMode being stored as an integer or as the string "individual" while the UI is in merged mode. Example branch data included: {"appliedChatPresetId":"vVfKQHCO1rePjYIdYgly1","groupChatMode":"individual","groupResponseOrder":"smart"}. Reference conversation: https://discord.com/channels/1417099416812392641/1495493775617687775/1555390723619033119 Discord thread: Narrator Mode Toggle for Merged Narrator vs Individual Breaks Discord thread link: https://discord.com/channels/1417099416812392641/1555404060666892298 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-10-02T02:20:26.073Z] Mazu: Reference full conversation here: https://discord.com/channels/1417099416812392641/1495493775617687775/1555390723619033119 Nutshell: If you toggle between Merged Narrator and Individual narration, sometimes it will change the prompt build ("You are X"), but not the order for what context to deliver to the prompt - or the other way around. ` ` ` Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+12a0acd5b782 Commit: 12a0acd5b782 Server OS: Windows 10.0.22631 (x64) Server memory: heap 351.1 / 4288 MiB; RSS 538.6 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: ended without shutting down - last alive 2026-10-02T01:46:10.879Z (up 1h 34m, RSS 333.8 MiB); device rebooted before next launch: unknown Sessions ended without shutdown: 10 recorded Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Gecko/20100101 Firefox/156.0 GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar Active connection: KoboldCPP (Gemma) Connection provider: openai Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555404060666892298] [2026-10-02T02:20:27.041Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555404064727244876] [2026-10-02T02:27:24.995Z] Mazu: @Crimson Orc - Recreated it on Chrome: 1) Login - Create a new Roleplay. 2) Skip config. 3) Add 2+ characters, no agents, no persona, etc 4) Trigger generation - Check backend: Note A) "You are X" prompt, and B) (Optional) Prompt size 5) Change merged <> individual mode 6) Trigger Generation - Check backened as above. It should be OK here. 7) Repeat from #5, but note that "You are X" is broken. In my case for #7, it was showing "You are Joe Smith" when it should been the merged narrator prompt. [Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555405817753116693] [2026-10-02T03:10:44.324Z] Mazu: New chats just start broken for me now. It could be a state issue within my local client that I'm stuck in - I have no idea [Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555416720129396798] [2026-10-02T03:12:24.752Z] Mazu: As far as I can tell, the big things are `groupChatMode`:integer? and `groupChatMode`:string within the branch data. Example: ` ` `"appliedChatPresetId":"vVfKQHCO1rePjYIdYgly1", "groupChatMode":"individual", "groupResponseOrder":"smart", ` ` ` (but it's merged instead) [Discord message: https://discord.com/channels/1417099416812392641/1555404060666892298/1555417141354831973] ``` </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 06:08:33 +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#3899
No description provided.