[GH-ISSUE #5433] [Issue]: Game Mode displays generated text out of order during segment generation #3012

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

While The Game Master is writing the next segment in Game Mode, a generated line appears before generation and other processing finish. The same line later appears again in the correct order.

Expected behavior

Game Mode should not display or change the narration until the next segment and related processing have finished, and each generated line should appear only in its correct order.

Actual behavior

While the next segment is still generating, the last generated message briefly appears early in the narration box. It then appears again later in the correct order, producing an out-of-order duplicate or spoiler.

Steps to reproduce

  1. Run Marinara Engine with a locally hosted Gemma 4 model through Koboldcpp.
  2. Enter Game Mode and start a turn that causes The Game Master to write the next segment.
  3. Observe the narration box while the next segment is still being generated.
  4. Notice that a generated line appears early, then appears again in the correct order after generation finishes.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+c441b983d34c, commit c441b983d3); latest staging as of 2026-08-23
  • Install type: Not provided
  • OS + version: Server: Windows 10.0.26200 (x64); client: Windows 10.0
  • Browser or app shell: Mozilla Firefox 154.0

Logs, screenshots, or video

Video: https://cdn.discordapp.com/attachments/1540442891124473937/1540442891619672144/Recording_2026-08-21_122026.mp4

Additional context

The issue initially occurred on both stable and staging. GitHub issue #5368 was reported as fixed and closed, but testing on the latest staging build shows it still persists. Trying a different browser did not change the behavior. The user runs Gemma 4 locally through Koboldcpp with all agents connected to it; the local sidecar is not used due to insufficient VRAM. Offloading trackers to a LAN computer also did not resolve the issue. Active connection: Gemma 26b Non Thinking; provider: custom; model: koboldcpp/Gemma4-26B-A4B-QAT-Uncensored-HauhauCS-Balanced-Q4_K_M.

Discord thread: Game mode gives spoilers while writing next segment
Discord thread link: https://discord.com/channels/1417099416812392641/1540442891124473937
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (7 messages)
[2026-08-21T19:30:05.289Z] Das: In Game Mode while The Game Master is writing the next segment, it shows a generated line out of order. In the attached video you can see at 25 seconds it is still generating the scene but a response shows up early. The exact same response shows up again in correct order at 53 seconds.

Currently on latest staging as of a couple hours ago (also happened on stable).

Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+c441b983d34c
Commit: c441b983d34c
Server OS: Windows 10.0.26200 (x64)
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:154.0) Gecko/20100101 Firefox/154.0
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar
Active connection: Gemma 26b Non Thinking
Connection provider: custom
LLM model: koboldcpp/Gemma4-26B-A4B-QAT-Uncensored-HauhauCS-Balanced-Q4_K_M
[attached file: Recording_2026-08-21_122026.mp4 — https://cdn.discordapp.com/attachments/1540442891124473937/1540442891619672144/Recording_2026-08-21_122026.mp4?ex=6a8b4a3d&is=6a89f8bd&hm=9cf0e40ad52b3228beb66fcc1c11cf95bad1995da50620e8b177889828af9807&]
[Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540442891124473937]

[2026-08-21T19:30:06.734Z] 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/1540442891124473937/1540442897185509487]

[2026-08-21T20:39:11.741Z] Marinara: Huh, weird. Yeah, it should not change anything until the generation finishes.
[Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540460282604687441]

[2026-08-21T20:39:18.138Z] Marinara: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540460309435785247]

[2026-08-21T20:39:35.715Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/5368
[Issue]: Game Mode displays generated text out of order during segm...
Summary While The Game Master is writing the next segment in Game Mode, a generated line appears before generation finishes. The same line is displayed again later in the correct order. Expected be...
[Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540460383158931546]

[2026-08-21T21:21:59.074Z] Professor Mari [bot]: The GitHub Issue #5368 was addressed and closed! It has now landed on staging (you can change the branch to staging in Marinara Engine's **Settings -> Advanced -> Updates -> Release Channel -> Staging/UAT**), so please test it out and let us know if everything works!
[Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540471050779762749]

[2026-08-23T06:48:57.784Z] Das: Unfortunately testing this on latest staging as of today, the issue still persists on my end. 

Since my initial post, I've tried using a different browser, no change. I am running Gemma 4 locally with Koboldcpp and all agents are also connected to that. (I'm not using the local sidecar option because I don't have enough VRAM to load anything on top of Kolboldcpp running Gemma 4). However, I tried offloading trackers to a LAN computer and the issue persisted.

I'd love to hear if any other locally hosted Gemma 4 users are also experiencing this and if not, I can accept it's just on my end and can live with it. But as an inexperienced noob, it seems like when running thing locally, when all the tokens have been generated for the next turn, but before ME is done doing everything else before the next turn, it displays the last generated message in the narration box briefly before the turn begins. Happy to do additional testing if needed 🫶
[Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540976123457052752]

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 (Aug 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5433 Originally assigned to: @SpicyMarinara on GitHub. ## Summary While The Game Master is writing the next segment in Game Mode, a generated line appears before generation and other processing finish. The same line later appears again in the correct order. ## Expected behavior Game Mode should not display or change the narration until the next segment and related processing have finished, and each generated line should appear only in its correct order. ## Actual behavior While the next segment is still generating, the last generated message briefly appears early in the narration box. It then appears again later in the correct order, producing an out-of-order duplicate or spoiler. ## Steps to reproduce 1. Run Marinara Engine with a locally hosted Gemma 4 model through Koboldcpp. 2. Enter Game Mode and start a turn that causes The Game Master to write the next segment. 3. Observe the narration box while the next segment is still being generated. 4. Notice that a generated line appears early, then appears again in the correct order after generation finishes. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+c441b983d34c, commit c441b983d34c); latest staging as of 2026-08-23 - Install type: Not provided - OS + version: Server: Windows 10.0.26200 (x64); client: Windows 10.0 - Browser or app shell: Mozilla Firefox 154.0 ## Logs, screenshots, or video Video: https://cdn.discordapp.com/attachments/1540442891124473937/1540442891619672144/Recording_2026-08-21_122026.mp4 ## Additional context The issue initially occurred on both stable and staging. GitHub issue #5368 was reported as fixed and closed, but testing on the latest staging build shows it still persists. Trying a different browser did not change the behavior. The user runs Gemma 4 locally through Koboldcpp with all agents connected to it; the local sidecar is not used due to insufficient VRAM. Offloading trackers to a LAN computer also did not resolve the issue. Active connection: Gemma 26b Non Thinking; provider: custom; model: koboldcpp/Gemma4-26B-A4B-QAT-Uncensored-HauhauCS-Balanced-Q4_K_M. Discord thread: Game mode gives spoilers while writing next segment Discord thread link: https://discord.com/channels/1417099416812392641/1540442891124473937 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (7 messages)</summary> ```text [2026-08-21T19:30:05.289Z] Das: In Game Mode while The Game Master is writing the next segment, it shows a generated line out of order. In the attached video you can see at 25 seconds it is still generating the scene but a response shows up early. The exact same response shows up again in correct order at 53 seconds. Currently on latest staging as of a couple hours ago (also happened on stable). Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+c441b983d34c Commit: c441b983d34c Server OS: Windows 10.0.26200 (x64) Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:154.0) Gecko/20100101 Firefox/154.0 GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar Active connection: Gemma 26b Non Thinking Connection provider: custom LLM model: koboldcpp/Gemma4-26B-A4B-QAT-Uncensored-HauhauCS-Balanced-Q4_K_M [attached file: Recording_2026-08-21_122026.mp4 — https://cdn.discordapp.com/attachments/1540442891124473937/1540442891619672144/Recording_2026-08-21_122026.mp4?ex=6a8b4a3d&is=6a89f8bd&hm=9cf0e40ad52b3228beb66fcc1c11cf95bad1995da50620e8b177889828af9807&] [Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540442891124473937] [2026-08-21T19:30:06.734Z] 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/1540442891124473937/1540442897185509487] [2026-08-21T20:39:11.741Z] Marinara: Huh, weird. Yeah, it should not change anything until the generation finishes. [Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540460282604687441] [2026-08-21T20:39:18.138Z] Marinara: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540460309435785247] [2026-08-21T20:39:35.715Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/5368 [Issue]: Game Mode displays generated text out of order during segm... Summary While The Game Master is writing the next segment in Game Mode, a generated line appears before generation finishes. The same line is displayed again later in the correct order. Expected be... [Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540460383158931546] [2026-08-21T21:21:59.074Z] Professor Mari [bot]: The GitHub Issue #5368 was addressed and closed! It has now landed on staging (you can change the branch to staging in Marinara Engine's **Settings -> Advanced -> Updates -> Release Channel -> Staging/UAT**), so please test it out and let us know if everything works! [Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540471050779762749] [2026-08-23T06:48:57.784Z] Das: Unfortunately testing this on latest staging as of today, the issue still persists on my end. Since my initial post, I've tried using a different browser, no change. I am running Gemma 4 locally with Koboldcpp and all agents are also connected to that. (I'm not using the local sidecar option because I don't have enough VRAM to load anything on top of Kolboldcpp running Gemma 4). However, I tried offloading trackers to a LAN computer and the issue persisted. I'd love to hear if any other locally hosted Gemma 4 users are also experiencing this and if not, I can accept it's just on my end and can live with it. But as an inexperienced noob, it seems like when running thing locally, when all the tokens have been generated for the next turn, but before ME is done doing everything else before the next turn, it displays the last generated message in the narration box briefly before the turn begins. Happy to do additional testing if needed 🫶 [Discord message: https://discord.com/channels/1417099416812392641/1540442891124473937/1540976123457052752] ``` </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:58:49 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 23, 2026):

Owned by @SpicyMarinara and being handled in draft PR #5435.

<!-- gh-comment-id:5384755363 --> @SpicyMarinara commented on GitHub (Aug 23, 2026): Owned by @SpicyMarinara and being handled in draft PR #5435.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 23, 2026):

Fixed on staging by #5435.

<!-- gh-comment-id:5385092614 --> @SpicyMarinara commented on GitHub (Aug 23, 2026): Fixed on staging by #5435.
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#3012
No description provided.