[GH-ISSUE #1003] [Issue]: Game mode can render an earlier session despite current chat metadata #490

Closed
opened 2026-10-20 17:29:26 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1003

Originally assigned to: @cha1latte on GitHub.

Summary

Game mode can render content from an earlier session even though the sidebar and chat metadata show the current session count, and chats.json contains the current messages.

Expected behavior

Game mode should render the current game/session content that matches chats.json, chat metadata, and the sidebar session count.

Actual behavior

The game surface rendered Session 26 content even though chats.json had messages through Session 31 and chat metadata showed the correct session number. Hard refresh, chat switching, and app restart did not fix the rendered state. Starting a new session jumped the view back to the current session.

Steps to reproduce

Exact repro is not yet known. Reporter context:

  1. Use game mode across multiple sessions.
  2. Delete a connected Lorebook Keeper lorebook. The reporter suspected this may have contributed to the issue.
  3. Return to the game surface.
  4. Observe that the game surface may render an older session endpoint while the sidebar/session metadata still show the current session.

Marinara Engine version

Not specified.

Install type

Not specified.

OS + version

Not specified.

Browser or app shell

Not specified.

Screenshots or video

No screenshot or video was provided. Source Discord report: https://discord.com/channels/1417099416812392641/1506183887880060948

Logs

Browser console error reported:

Content-Security-Policy: The page's settings blocked the loading of a resource (media-src) at data:audio/wav;base64,UklGRkQDAABXQVZFZm... because it violates the following directive: "media-src 'self' blob: https:"

Additional context

Source: Discord report from drakonbane.

Reporter/Mari summary:

  • "game mode shows Session 26 content despite chats.json having all messages through Session 31"
  • "chatMeta shows correct session number"
  • "hard refresh, chat switch, app restart all failed"
  • "no scroll - game surface just renders wrong point"

Reporter later noted that starting a new session jumped to the current session, but the underlying bug is still present.

Template check

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
Originally created by @cha1latte on GitHub (May 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1003 Originally assigned to: @cha1latte on GitHub. ### Summary Game mode can render content from an earlier session even though the sidebar and chat metadata show the current session count, and `chats.json` contains the current messages. ### Expected behavior Game mode should render the current game/session content that matches `chats.json`, chat metadata, and the sidebar session count. ### Actual behavior The game surface rendered Session 26 content even though `chats.json` had messages through Session 31 and chat metadata showed the correct session number. Hard refresh, chat switching, and app restart did not fix the rendered state. Starting a new session jumped the view back to the current session. ### Steps to reproduce Exact repro is not yet known. Reporter context: 1. Use game mode across multiple sessions. 2. Delete a connected Lorebook Keeper lorebook. The reporter suspected this may have contributed to the issue. 3. Return to the game surface. 4. Observe that the game surface may render an older session endpoint while the sidebar/session metadata still show the current session. ### Marinara Engine version Not specified. ### Install type Not specified. ### OS + version Not specified. ### Browser or app shell Not specified. ### Screenshots or video No screenshot or video was provided. Source Discord report: https://discord.com/channels/1417099416812392641/1506183887880060948 ### Logs Browser console error reported: ```text Content-Security-Policy: The page's settings blocked the loading of a resource (media-src) at data:audio/wav;base64,UklGRkQDAABXQVZFZm... because it violates the following directive: "media-src 'self' blob: https:" ``` ### Additional context Source: Discord report from drakonbane. Reporter/Mari summary: - "game mode shows Session 26 content despite chats.json having all messages through Session 31" - "chatMeta shows correct session number" - "hard refresh, chat switch, app restart all failed" - "no scroll - game surface just renders wrong point" Reporter later noted that starting a new session jumped to the current session, but the underlying bug is still present. ### Template check - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
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#490
No description provided.