[GH-ISSUE #7725] [Issue]: advanced memory recall only wants to make 2 scenes when preparing history of existing roleplay #4258

Closed
opened 2026-10-21 06:13:40 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When starting at the start of the chat, it worked fine and created many scenes. But when starting later on, it would only create two. The first for messages 1-20, and the second the rest (Messages 21-139 Ongoing in this case).

Affected package

Advanced memory recall

Expected behavior

Can make many scenes, even when setting up in an ongoing roleplay.

Actual behavior

Only made 2 scenes. I tried several times but same effect.

Steps to reproduce

  1. Open long roleplay.
  2. Run advanced memory recall and prepare history
  3. View memories and observe number of scenes

Environment

Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+7e28236962a0
Commit: 7e28236962a0
Server OS: Linux 7.2.9-200.fc44.x86_64 (x64)
Server memory: heap 350.4 / 4288 MiB; RSS 621.6 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: shut down cleanly at 2026-10-12T17:47:11.689Z
Sessions ended without shutdown: 0 recorded
Client OS: Android 10
Browser / app shell: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Mobile Safari/537.36
Client runtime: {"build":"2.5.0+7e28236962a0","page":"mv97agqz-euajbn5p","persistence":"local","navigation":"navigate","standalone":false,"view":[759,0,759,0],"events":[{"at":1792104164400,"page":"mv97agqz-euajbn5p","build":"2.5.0+7e28236962a0","kind":"message-edited","view":[759,0,759,0]},{"at":1792104572212,"page":"mv97agqz-euajbn5p","build":"2.5.0+7e28236962a0","kind":"message-edited","view":[759,0,759,0]},{"at":1792104640002,"page":"mv97agqz-euajbn5p","build":"2.5.0+7e28236962a0","kind":"message-edited","view":[759,0,759,0]}]}
GPU: ANGLE (ARM, Mali-G715, OpenGL ES 3.2)
Server GPU: no NVIDIA GPU detected
Main sidecar: running; gemma-4-E2B-it-Q4_K_M.gguf; 3.1 GB file; context 8192; backend linux-x64-cpu; est. 3.6 GB VRAM
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured

Logs, screenshots, or video

Additional context

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 @stclaire on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7725 Originally assigned to: @SpicyMarinara on GitHub. ## Summary <!-- What is wrong in one or two sentences? --> When starting at the start of the chat, it worked fine and created many scenes. But when starting later on, it would only create two. The first for messages 1-20, and the second the rest (Messages 21-139 Ongoing in this case). ## Affected package <!-- Package name or ID, or "catalog/repository" if the issue is not package-specific. --> Advanced memory recall ## Expected behavior Can make many scenes, even when setting up in an ongoing roleplay. <!-- What should have happened? --> ## Actual behavior Only made 2 scenes. I tried several times but same effect. <!-- What happened instead? --> ## Steps to reproduce 1. Open long roleplay. 2. Run advanced memory recall and prepare history 3. View memories and observe number of scenes ## Environment ``` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+7e28236962a0 Commit: 7e28236962a0 Server OS: Linux 7.2.9-200.fc44.x86_64 (x64) Server memory: heap 350.4 / 4288 MiB; RSS 621.6 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: shut down cleanly at 2026-10-12T17:47:11.689Z Sessions ended without shutdown: 0 recorded Client OS: Android 10 Browser / app shell: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Mobile Safari/537.36 Client runtime: {"build":"2.5.0+7e28236962a0","page":"mv97agqz-euajbn5p","persistence":"local","navigation":"navigate","standalone":false,"view":[759,0,759,0],"events":[{"at":1792104164400,"page":"mv97agqz-euajbn5p","build":"2.5.0+7e28236962a0","kind":"message-edited","view":[759,0,759,0]},{"at":1792104572212,"page":"mv97agqz-euajbn5p","build":"2.5.0+7e28236962a0","kind":"message-edited","view":[759,0,759,0]},{"at":1792104640002,"page":"mv97agqz-euajbn5p","build":"2.5.0+7e28236962a0","kind":"message-edited","view":[759,0,759,0]}]} GPU: ANGLE (ARM, Mali-G715, OpenGL ES 3.2) Server GPU: no NVIDIA GPU detected Main sidecar: running; gemma-4-E2B-it-Q4_K_M.gguf; 3.1 GB file; context 8192; backend linux-x64-cpu; est. 3.6 GB VRAM Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured ``` ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible. Do not include API keys or private chat data. --> ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## 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:13:40 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 16, 2026):

Thanks for the detailed report and the diagnostics! This is the scene detector being cautious, not a bug.

When Advanced Memory prepares existing history, a model reads the messages and marks where each scene ends. It only splits when it's sure the story moved to another place or time or switched to characters who are somewhere else. When it isn't sure, it leaves the scene open deliberately, so a scene is never cut in half. The last scene also stays open until it ends.

Your diagnostics show the built-in local model, gemma-4-E2B (Q4, 8k context, on the CPU), doing that work. A model that is small and quantized is rarely sure about scene changes. So after the first break it kept messages 21–139 as one ongoing scene. Starting from the beginning works better because each check then only looks at a few new messages at a time.

To get proper scenes:

  1. Pick a stronger Helper model in Chat Settings → Memory Recall. Any capable API model works well. Or turn on the Use Decision model and choose a good Decision connection.
  2. Use Re-scan scenes in the same panel for messages 21 to 139. It finds the scene changes again and summarizes the new scenes. Your first scene and anything you edited stay as they are.

If your story really stays in one place with the same characters for those messages, it is one scene, and that's fine. Recall still finds details inside it through its excerpts.

If you still get only one scene after a re-scan with a stronger model, please reopen this with the model you used, and we'll take another look. 💛

<!-- gh-comment-id:6212132531 --> @SpicyMarinara commented on GitHub (Oct 16, 2026): Thanks for the detailed report and the diagnostics! This is the scene detector being cautious, not a bug. When Advanced Memory prepares existing history, a model reads the messages and marks where each scene ends. It only splits when it's sure the story moved to another place or time or switched to characters who are somewhere else. When it isn't sure, it leaves the scene open deliberately, so a scene is never cut in half. The last scene also stays open until it ends. Your diagnostics show the built-in local model, **gemma-4-E2B** (Q4, 8k context, on the CPU), doing that work. A model that is small and quantized is rarely sure about scene changes. So after the first break it kept messages 21–139 as one ongoing scene. Starting from the beginning works better because each check then only looks at a few new messages at a time. To get proper scenes: 1. Pick a stronger **Helper model** in **Chat Settings → Memory Recall**. Any capable API model works well. Or turn on the **Use Decision model** and choose a good Decision connection. 2. Use **Re-scan scenes** in the same panel for messages **21** to **139**. It finds the scene changes again and summarizes the new scenes. Your first scene and anything you edited stay as they are. If your story really stays in one place with the same characters for those messages, it is one scene, and that's fine. Recall still finds details inside it through its excerpts. If you still get only one scene after a re-scan with a stronger model, please reopen this with the model you used, and we'll take another look. 💛
Author
Owner

@stclaire commented on GitHub (Oct 16, 2026):

Sorry for confusion on the model. I have my agents all pointing to my main model, which is a Gemma 4 31B fine-tune (llmfan46/gemma-4-31B-it-uncensored-heretic-GGUF:Q8_0).

There's definitely changes like all the characters except persona leaving the room, then a different character enters, etc... Even an instance of a time jump to the next day which ought to very easily be identified as a scene transition.

If the problem is trying to process all the messages in one go, could there be a way to have it process it in chunks maybe? Or maybe even a way to manually delimit scenes if the model is having trouble?

Thanks very much for the help.

<!-- gh-comment-id:6217392375 --> @stclaire commented on GitHub (Oct 16, 2026): Sorry for confusion on the model. I have my agents all pointing to my main model, which is a Gemma 4 31B fine-tune (llmfan46/gemma-4-31B-it-uncensored-heretic-GGUF:Q8_0). There's definitely changes like all the characters except persona leaving the room, then a different character enters, etc... Even an instance of a time jump to the next day which ought to very easily be identified as a scene transition. If the problem is trying to process all the messages in one go, could there be a way to have it process it in chunks maybe? Or maybe even a way to manually delimit scenes if the model is having trouble? Thanks very much for the help.
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#4258
No description provided.