[GH-ISSUE #6766] [Issue]: Advanced Memory swipes ignore the shared history cutoff #3789

Closed
opened 2026-10-21 06:07:27 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Roleplay Advanced Memory applies its shared "Mark as new start for All" cutoff to the first generated reply, but subsequent swipes include older messages in the Chat History block. The reported cutoff message is hidden from the responding character.

Expected behavior

A fresh reply and its swipes must exclude raw history before the applicable shared cutoff, even when the cutoff message itself is hidden. Regenerating a message from before a later cutoff must still use its own historical context.

Actual behavior

The first reply has the correct cutoff; all tested swipes restore older raw messages that should have been excluded.

Steps to reproduce

  1. Use a Roleplay chat with Advanced Memory and multiple characters.
  2. Let Advanced Memory save a shared "All" start marker on a message hidden from the responding character.
  3. Generate a reply and then swipe/regenerate it; inspect the Chat History block in each request.

Environment

  • Marinara Engine version: staging; exact running commit not supplied for this report.
  • Install type: Docker, per the current maintainer session.
  • OS + version: server OS not supplied.
  • Browser or app shell: not specified for this reproduction.

Logs, screenshots, or video

Maintainer report: the first generated message uses the correct cutoff, while its swipes include older messages. No private chat contents are needed for the regression fixture.

Additional context

Implementation owner: SpicyMarinara, assisted by Codex. Investigating the historical preparation path and cached swipe memory; keep the fix small and cover the actual provider request.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6766 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Roleplay Advanced Memory applies its shared "Mark as new start for All" cutoff to the first generated reply, but subsequent swipes include older messages in the Chat History block. The reported cutoff message is hidden from the responding character. ## Expected behavior A fresh reply and its swipes must exclude raw history before the applicable shared cutoff, even when the cutoff message itself is hidden. Regenerating a message from before a later cutoff must still use its own historical context. ## Actual behavior The first reply has the correct cutoff; all tested swipes restore older raw messages that should have been excluded. ## Steps to reproduce 1. Use a Roleplay chat with Advanced Memory and multiple characters. 2. Let Advanced Memory save a shared "All" start marker on a message hidden from the responding character. 3. Generate a reply and then swipe/regenerate it; inspect the Chat History block in each request. ## Environment - Marinara Engine version: staging; exact running commit not supplied for this report. - Install type: Docker, per the current maintainer session. - OS + version: server OS not supplied. - Browser or app shell: not specified for this reproduction. ## Logs, screenshots, or video Maintainer report: the first generated message uses the correct cutoff, while its swipes include older messages. No private chat contents are needed for the regression fixture. ## Additional context Implementation owner: SpicyMarinara, assisted by Codex. Investigating the historical preparation path and cached swipe memory; keep the fix small and cover the actual provider request. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:27 +07:00
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#3789
No description provided.