[GH-ISSUE #4891] [Issue]: Automatic summaries are inserted out of order after Combine #2711

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

New automatic summary entries are inserted below the last automatic summary or between combined entries instead of at the end of the summary list. The scrambled order is also used in the model prompt, causing timeline confusion in roleplay responses. The user should be able to manually re-order entries.

Expected behavior

Automatic summaries should be ordered chronologically by message range and appended in the correct position after manual or combined entries. Summarized messages should be hidden when "Hide summarised messages" is enabled.

Actual behavior

Automatic summaries are inserted above manual entries or between combined summary entries, leaving the list and model prompt out of order. In the same chat, summarized messages remain visible despite "Hide summarised messages" being enabled.

Steps to reproduce

  1. Open a Roleplay chat and enable Automatic Summaries.
  2. Continue the chat until several automatic summary entries are generated.
  3. Create a summary manually or use Combine on summary entries.
  4. Continue until another automatic summary is generated.
  5. Observe that the new automatic summary is inserted below the previous automatic summary or between combined entries instead of in chronological order.
  6. Use Peek Prompt and observe that summaries are sent to the model in the same scrambled order.
  7. Enable "Hide summarised messages" and observe that summarized messages may remain visible.

Environment

  • Marinara Engine version: v2.4.1
  • Install type: source
  • OS + version: Ubuntu 24.04.4 LTS on a Vultr VPS
  • Browser or app shell: Not provided

Logs, screenshots, or video

Screenshot showing summary placement: https://cdn.discordapp.com/attachments/1536661678320779294/1536661678777966612/8b2fe8508eb33592.png?ex=6a7c3736&is=6a7ae5b6&hm=d77f0aeaff6dd77366f328270856ac40ab888dad045c05b27d310fa0f4abbe11&. Peek Prompt confirms the model receives summaries in the same scrambled order.

Additional context

Manual source install runs through a custom systemd service. The reporter says several other users experience the issue. There is no UI control to reorder summaries, so the workaround is to create a new entry and paste it at the bottom. Drag-and-drop reordering, similar to preset sections, was suggested.

Discord thread: Automatic Summaries get inserted in the wrong position after using Combine
Discord thread link: https://discord.com/channels/1417099416812392641/1536661678320779294
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-08-11T09:04:53.905Z] Lattete: ME: v2.4.1
OS: Ubuntu 24.04.4 LTS (Vultr VPS) 
Install: Manual install from source on a self-hosted Vultr Ubuntu VPS, running via a custom systemd service (not the official Termux/APK installer)
Chat mode: Roleplay

Repro:

Before the Combine feature existed:
1. In a Roleplay chat, turn on Automatic Summaries so it keeps generating summary entries as the chat continues.
2. After several automatic summaries had piled up, I created a summary manually.
3. After that, whenever automatic summarization ran again, the new entry wasn't added at the very bottom of the list — it was inserted right below the last automatic summary (above the manual one).

After the Combine feature was added:
4. This time, the new automatic summary gets inserted in between the combined summary entries (see the attached screenshot).
5. So the whole summary list ends up out of order.

Not sure if it's related, but in this same chat the summarized messages aren't being hidden either — the "Hide summarised messages" option is checked, but it doesn't seem to be working.

I checked with Peek Prompt and the actual prompt sent to the model has the summaries in this same scrambled order, not sorted by message range. My character has been responding as if confused about the timeline, which lines up with this.

There's no way to manually reorder summary entries in the UI, so when this happens, I have to create a new entry myself and paste it at the very bottom of the list

I've also confirmed that a few other users are experiencing the same issue. If possible, it would be great to have a feature that lets users manually reorder summary entries themselves.

[attached image 1: https://cdn.discordapp.com/attachments/1536661678320779294/1536661678777966612/8b2fe8508eb33592.png?ex=6a7c3736&is=6a7ae5b6&hm=d77f0aeaff6dd77366f328270856ac40ab888dad045c05b27d310fa0f4abbe11&]
[Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536661678320779294]

[2026-08-11T09:09:32.407Z] Marinara: Oh yeah, no idea why summaries don't have drag-and-drop added. They should absolutely have it so you could move them around.
[Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536662846442704896]

[2026-08-11T09:09:39.666Z] Marinara: Like preset sections do.
[Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536662876889026560]

[2026-08-11T09:10:10.758Z] Marinara: They should also be hidden if you hide them.
[Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536663007298322433]

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 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4891 Originally assigned to: @SpicyMarinara on GitHub. ## Summary New automatic summary entries are inserted below the last automatic summary or between combined entries instead of at the end of the summary list. The scrambled order is also used in the model prompt, causing timeline confusion in roleplay responses. The user should be able to manually re-order entries. ## Expected behavior Automatic summaries should be ordered chronologically by message range and appended in the correct position after manual or combined entries. Summarized messages should be hidden when "Hide summarised messages" is enabled. ## Actual behavior Automatic summaries are inserted above manual entries or between combined summary entries, leaving the list and model prompt out of order. In the same chat, summarized messages remain visible despite "Hide summarised messages" being enabled. ## Steps to reproduce 1. Open a Roleplay chat and enable Automatic Summaries. 2. Continue the chat until several automatic summary entries are generated. 3. Create a summary manually or use Combine on summary entries. 4. Continue until another automatic summary is generated. 5. Observe that the new automatic summary is inserted below the previous automatic summary or between combined entries instead of in chronological order. 6. Use Peek Prompt and observe that summaries are sent to the model in the same scrambled order. 7. Enable "Hide summarised messages" and observe that summarized messages may remain visible. ## Environment - Marinara Engine version: v2.4.1 - Install type: source - OS + version: Ubuntu 24.04.4 LTS on a Vultr VPS - Browser or app shell: Not provided ## Logs, screenshots, or video Screenshot showing summary placement: https://cdn.discordapp.com/attachments/1536661678320779294/1536661678777966612/8b2fe8508eb33592.png?ex=6a7c3736&is=6a7ae5b6&hm=d77f0aeaff6dd77366f328270856ac40ab888dad045c05b27d310fa0f4abbe11&. Peek Prompt confirms the model receives summaries in the same scrambled order. ## Additional context Manual source install runs through a custom systemd service. The reporter says several other users experience the issue. There is no UI control to reorder summaries, so the workaround is to create a new entry and paste it at the bottom. Drag-and-drop reordering, similar to preset sections, was suggested. Discord thread: Automatic Summaries get inserted in the wrong position after using Combine Discord thread link: https://discord.com/channels/1417099416812392641/1536661678320779294 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-11T09:04:53.905Z] Lattete: ME: v2.4.1 OS: Ubuntu 24.04.4 LTS (Vultr VPS) Install: Manual install from source on a self-hosted Vultr Ubuntu VPS, running via a custom systemd service (not the official Termux/APK installer) Chat mode: Roleplay Repro: Before the Combine feature existed: 1. In a Roleplay chat, turn on Automatic Summaries so it keeps generating summary entries as the chat continues. 2. After several automatic summaries had piled up, I created a summary manually. 3. After that, whenever automatic summarization ran again, the new entry wasn't added at the very bottom of the list — it was inserted right below the last automatic summary (above the manual one). After the Combine feature was added: 4. This time, the new automatic summary gets inserted in between the combined summary entries (see the attached screenshot). 5. So the whole summary list ends up out of order. Not sure if it's related, but in this same chat the summarized messages aren't being hidden either — the "Hide summarised messages" option is checked, but it doesn't seem to be working. I checked with Peek Prompt and the actual prompt sent to the model has the summaries in this same scrambled order, not sorted by message range. My character has been responding as if confused about the timeline, which lines up with this. There's no way to manually reorder summary entries in the UI, so when this happens, I have to create a new entry myself and paste it at the very bottom of the list I've also confirmed that a few other users are experiencing the same issue. If possible, it would be great to have a feature that lets users manually reorder summary entries themselves. [attached image 1: https://cdn.discordapp.com/attachments/1536661678320779294/1536661678777966612/8b2fe8508eb33592.png?ex=6a7c3736&is=6a7ae5b6&hm=d77f0aeaff6dd77366f328270856ac40ab888dad045c05b27d310fa0f4abbe11&] [Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536661678320779294] [2026-08-11T09:09:32.407Z] Marinara: Oh yeah, no idea why summaries don't have drag-and-drop added. They should absolutely have it so you could move them around. [Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536662846442704896] [2026-08-11T09:09:39.666Z] Marinara: Like preset sections do. [Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536662876889026560] [2026-08-11T09:10:10.758Z] Marinara: They should also be hidden if you hide them. [Discord message: https://discord.com/channels/1417099416812392641/1536661678320779294/1536663007298322433] ``` </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:53:34 +07:00
Author
Owner

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

Implementation is being handled by @SpicyMarinara on branch agent/assigned-issues-aug11; a draft staging PR will follow shortly.

<!-- gh-comment-id:5251512014 --> @SpicyMarinara commented on GitHub (Aug 11, 2026): Implementation is being handled by @SpicyMarinara on branch `agent/assigned-issues-aug11`; a draft staging PR will follow shortly.
Author
Owner

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

Draft implementation PR: #4898.

<!-- gh-comment-id:5251520369 --> @SpicyMarinara commented on GitHub (Aug 11, 2026): Draft implementation PR: #4898.
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#2711
No description provided.