[GH-ISSUE #6280] [Issue]: Advanced Memory Recall cannot process existing chats #3502

Closed
opened 2026-10-21 06:03:43 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Advanced Memory Recall fails when processing an existing chat because the request is cut off at exactly 1024 tokens. The process repeatedly ends with a scene decision completion error.

Expected behavior

Advanced Memory Recall should process the existing chat, complete the scene decision, and finish the memory recall process.

Actual behavior

Processing an existing chat stops at exactly 1024 tokens according to OpenRouter logs, regardless of the model used. The UI reports "Scene helper did not complete it's scene decision, retry preparation" and retrying does not resolve the failure.

Steps to reproduce

  1. Enable Advanced Memory Recall.
  2. Attempt to process an existing chat.
  3. Observe that the request stops at 1024 tokens and the scene helper completion error is displayed.
  4. Retry the operation and observe that it fails in the same way.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+b659229c2e9c, commit b659229c2e)
  • Install type: termux
  • OS + version: Server: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64); client: Windows 10.0
  • Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0

Logs, screenshots, or video

OpenRouter logs show the request being cut off at exactly 1024 tokens. The visible error is: "Scene helper did not complete it's scene decision, retry preparation". No screenshots or video were provided.

Additional context

The reporter tested with DeepSeek first and GLM 5.3, with both reportedly stopping at the same limit. The support diagnostics list the active connection as Deepseek through OpenRouter using deepseek/deepseek-v4-flash. Server memory was heap 1059.5 / 3936 MiB and RSS 1721.7 MiB.

Discord thread: Advanced Memory Recall can't process existing chats
Discord thread link: https://discord.com/channels/1417099416812392641/1549929677815156846
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-09-16T23:47:11.492Z] Leytra: So I turned it on, planning to test it out since it sounds like it's basically the skyrimnet memory system which would be really good to have.

And I tried to run the process existing chat thing.
It's not actually capable of doing so, any attempt gets cut off at exactly 1024 tokens according to Openrouter's logs.
Tried with deepseek first, then GLM 5.3 since that's just entirely more powerful, both cut off the same way, and there's no setting in there I can see that should be limiting it so heavily, but because it is, it just stops with "Scene helper did not complete it's scene decision, retry preparation" regardless of the number of times I hit retry.
[Discord message: https://discord.com/channels/1417099416812392641/1549929677815156846/1549929677815156846]

[2026-09-16T23:47:12.234Z] 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/1549929677815156846/1549929680927457323]

[2026-09-16T23:47:32.350Z] Leytra: Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+b659229c2e9c
Commit: b659229c2e9c
Server OS: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64)
Server memory: heap 1059.5 / 3936 MiB; RSS 1721.7 MiB
Background wake lock: acquired
Last detected freeze: ~84s suspension, thawed at 2026-09-16T23:21:31.318Z
Previous session: shut down cleanly at 2026-09-16T18:44:39.651Z
Sessions ended without shutdown: 8 recorded
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0
Client runtime: {"build":"2.4.6+b659229c2e9c","page":"mu4hrwku-bqwn1xf5","persistence":"local","navigation":"reload","standalone":false,"view":[931,0,0,0],"events":[{"at":1789599777804,"page":"mu4pi230-ly6pjggb","build":"2.4.6+b659229c2e9c","kind":"page-start","view":[931,0,0,0]},{"at":1789601175548,"page":"mu4hrwku-bqwn1xf5","build":"2.4.6+b659229c2e9c","kind":"message-edited","view":[931,0,0,0]}]}
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar
Active connection: Deepseek
Connection provider: openrouter
LLM model: deepseek/deepseek-v4-flash
Mari last acted on: none recorded this session
[Discord message: https://discord.com/channels/1417099416812392641/1549929677815156846/1549929765299949660]

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 (Sep 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6280 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Advanced Memory Recall fails when processing an existing chat because the request is cut off at exactly 1024 tokens. The process repeatedly ends with a scene decision completion error. ## Expected behavior Advanced Memory Recall should process the existing chat, complete the scene decision, and finish the memory recall process. ## Actual behavior Processing an existing chat stops at exactly 1024 tokens according to OpenRouter logs, regardless of the model used. The UI reports "Scene helper did not complete it's scene decision, retry preparation" and retrying does not resolve the failure. ## Steps to reproduce 1. Enable Advanced Memory Recall. 2. Attempt to process an existing chat. 3. Observe that the request stops at 1024 tokens and the scene helper completion error is displayed. 4. Retry the operation and observe that it fails in the same way. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+b659229c2e9c, commit b659229c2e9c) - Install type: termux - OS + version: Server: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64); client: Windows 10.0 - Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0 ## Logs, screenshots, or video OpenRouter logs show the request being cut off at exactly 1024 tokens. The visible error is: "Scene helper did not complete it's scene decision, retry preparation". No screenshots or video were provided. ## Additional context The reporter tested with DeepSeek first and GLM 5.3, with both reportedly stopping at the same limit. The support diagnostics list the active connection as Deepseek through OpenRouter using deepseek/deepseek-v4-flash. Server memory was heap 1059.5 / 3936 MiB and RSS 1721.7 MiB. Discord thread: Advanced Memory Recall can't process existing chats Discord thread link: https://discord.com/channels/1417099416812392641/1549929677815156846 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-09-16T23:47:11.492Z] Leytra: So I turned it on, planning to test it out since it sounds like it's basically the skyrimnet memory system which would be really good to have. And I tried to run the process existing chat thing. It's not actually capable of doing so, any attempt gets cut off at exactly 1024 tokens according to Openrouter's logs. Tried with deepseek first, then GLM 5.3 since that's just entirely more powerful, both cut off the same way, and there's no setting in there I can see that should be limiting it so heavily, but because it is, it just stops with "Scene helper did not complete it's scene decision, retry preparation" regardless of the number of times I hit retry. [Discord message: https://discord.com/channels/1417099416812392641/1549929677815156846/1549929677815156846] [2026-09-16T23:47:12.234Z] 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/1549929677815156846/1549929680927457323] [2026-09-16T23:47:32.350Z] Leytra: Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+b659229c2e9c Commit: b659229c2e9c Server OS: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64) Server memory: heap 1059.5 / 3936 MiB; RSS 1721.7 MiB Background wake lock: acquired Last detected freeze: ~84s suspension, thawed at 2026-09-16T23:21:31.318Z Previous session: shut down cleanly at 2026-09-16T18:44:39.651Z Sessions ended without shutdown: 8 recorded Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0 Client runtime: {"build":"2.4.6+b659229c2e9c","page":"mu4hrwku-bqwn1xf5","persistence":"local","navigation":"reload","standalone":false,"view":[931,0,0,0],"events":[{"at":1789599777804,"page":"mu4pi230-ly6pjggb","build":"2.4.6+b659229c2e9c","kind":"page-start","view":[931,0,0,0]},{"at":1789601175548,"page":"mu4hrwku-bqwn1xf5","build":"2.4.6+b659229c2e9c","kind":"message-edited","view":[931,0,0,0]}]} GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar Active connection: Deepseek Connection provider: openrouter LLM model: deepseek/deepseek-v4-flash Mari last acted on: none recorded this session [Discord message: https://discord.com/channels/1417099416812392641/1549929677815156846/1549929765299949660] ``` </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:03:43 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

Probably couldn't process the entire output, but when processing existing chats, let's ensure the model only returns scene ranges and short summaries for those scenes; not actual rewrites of messages. Models can also sometimes return incorrect JSON formats, so we need to have recovery set for such cases.

<!-- gh-comment-id:5710928893 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): Probably couldn't process the entire output, but when processing existing chats, let's ensure the model only returns scene ranges and short summaries for those scenes; not actual rewrites of messages. Models can also sometimes return incorrect JSON formats, so we need to have recovery set for such cases.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

Owner: @SpicyMarinara. Codex is addressing this in draft PR #6282 as part of the requested issue sweep. Focused implementation and regression/browser verification are in progress.

<!-- gh-comment-id:5710998400 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): Owner: @SpicyMarinara. Codex is addressing this in draft PR #6282 as part of the requested issue sweep. Focused implementation and regression/browser verification are in progress.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

Implemented in #6282, now merged to staging after the final CI and CodeRabbit gates passed.

<!-- gh-comment-id:5712579327 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): Implemented in #6282, now merged to staging after the final CI and CodeRabbit gates passed.
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#3502
No description provided.