[GH-ISSUE #6471] [Issue]: Bound and streamline Advanced Memory recall for main Roleplay replies #3622

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Advanced Memory recall adds too many excerpts, separates each message under its own range heading, and does not pair recalled scene summaries with their excerpts. The maintainer also reports a delayed reply that did not stream despite streaming being enabled.

Expected behavior

  • Recall runs only for the main Roleplay generation. Agent runs must neither trigger it nor receive its returned memory content.
  • A maximum relevant-scene setting defaults to 3; fewer scenes are allowed when fewer are relevant. Existing excerpt message limits apply per selected scene.
  • Each recalled scene summary is followed by a grouped excerpt with one message-range heading.
  • Recalled context identifies the present message range and the last user-message number, so the model can distinguish historical events from the current turn.
  • Routine retrieval reuses prepared memories promptly, and a streaming main reply remains streamed.
  • Scene checks run independently after the main reply at the configured message interval. Only a detected scene ending triggers archive preparation; show it as Advanced Recall in the top-left Agents menu, even when ordinary agents are off. Explicit initial Prepare/Resume remains available.
  • Existing audience restrictions and exclusion of source messages already in live context remain in force.

Actual behavior

The reported request added approximately 7,000 tokens of recalled messages, emitted separate single-message range headings, and took minutes before showing the reply. Streaming and the agent boundary need to be traced and verified.

Steps to reproduce

  1. Prepare Advanced Memory for a long Roleplay chat with multiple archived scenes.
  2. Generate a main reply with streaming enabled and a query matching older scenes.
  3. Inspect the generated prompt, recalled scene/excerpt counts, main response stream, and agent request prompts.

Environment

  • Marinara Engine version: staging; exact build for this report not specified.
  • Install type: not specified for this report.
  • OS + version: not specified for this report.
  • Browser or app shell: not specified for this report.

Logs, screenshots, or video

Reported excerpt formatting:

Messages #199–#199; …
#199 Powers That Be: …

Messages #200–#200; …
#200 Mari: …

Expected: one Messages #199–#201 heading followed by the scene's selected messages.

Additional context

Owner: @SpicyMarinara, with Codex implementing the focused fix. No existing open PR covers this work. Preserve saved summaries; no archive reset should be required.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6471 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Advanced Memory recall adds too many excerpts, separates each message under its own range heading, and does not pair recalled scene summaries with their excerpts. The maintainer also reports a delayed reply that did not stream despite streaming being enabled. ## Expected behavior - Recall runs only for the main Roleplay generation. Agent runs must neither trigger it nor receive its returned memory content. - A maximum relevant-scene setting defaults to 3; fewer scenes are allowed when fewer are relevant. Existing excerpt message limits apply per selected scene. - Each recalled scene summary is followed by a grouped excerpt with one message-range heading. - Recalled context identifies the present message range and the last user-message number, so the model can distinguish historical events from the current turn. - Routine retrieval reuses prepared memories promptly, and a streaming main reply remains streamed. - Scene checks run independently after the main reply at the configured message interval. Only a detected scene ending triggers archive preparation; show it as Advanced Recall in the top-left Agents menu, even when ordinary agents are off. Explicit initial Prepare/Resume remains available. - Existing audience restrictions and exclusion of source messages already in live context remain in force. ## Actual behavior The reported request added approximately 7,000 tokens of recalled messages, emitted separate single-message range headings, and took minutes before showing the reply. Streaming and the agent boundary need to be traced and verified. ## Steps to reproduce 1. Prepare Advanced Memory for a long Roleplay chat with multiple archived scenes. 2. Generate a main reply with streaming enabled and a query matching older scenes. 3. Inspect the generated prompt, recalled scene/excerpt counts, main response stream, and agent request prompts. ## Environment - Marinara Engine version: staging; exact build for this report not specified. - Install type: not specified for this report. - OS + version: not specified for this report. - Browser or app shell: not specified for this report. ## Logs, screenshots, or video Reported excerpt formatting: ```text Messages #199–#199; … #199 Powers That Be: … Messages #200–#200; … #200 Mari: … ``` Expected: one `Messages #199–#201` heading followed by the scene's selected messages. ## Additional context Owner: @SpicyMarinara, with Codex implementing the focused fix. No existing open PR covers this work. Preserve saved summaries; no archive reset should be required. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:12 +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#3622
No description provided.