[GH-ISSUE #236] [Issue]: Summary does not work for me. #93

Closed
opened 2026-10-20 17:25:02 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @Barafu on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/236

Summary

When I press "Generate" in the Summary popup, I get a text that describes possible future event, not a summary. And even if I write summary manually, it is not clear how to use it to reduce the token count of RP history.

I use NanoGPT connection, GLM-5, Kimi 2.5, Qwen3 - all models do that.

I did not edit the default prompt preset in any way.

Expected behavior

The proper text generated, and some obvious effect after pressing Save.

Environment

  • Marinara Engine version: latest
  • Install type: (source / installer / docker / termux / other) docker
  • OS + version:
  • Browser or app shell: browser

Logs, screenshots, or video

Additional context

Template check

This "Template check" is the only thing that is hidden behind the scrollbar.

Originally created by @Barafu on GitHub (Apr 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/236 ## Summary When I press "Generate" in the Summary popup, I get a text that describes possible future event, not a summary. And even if I write summary manually, it is not clear how to use it to reduce the token count of RP history. I use NanoGPT connection, GLM-5, Kimi 2.5, Qwen3 - all models do that. I did not edit the default prompt preset in any way. ## Expected behavior The proper text generated, and some obvious effect after pressing Save. ## Environment - Marinara Engine version: latest - Install type: (source / installer / docker / termux / other) docker - OS + version: - Browser or app shell: browser ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible --> ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## Template check This "Template check" is the only thing that is hidden behind the scrollbar.
bsakaguchi 2026-10-20 17:25:02 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@LukaTheHero commented on GitHub (Apr 26, 2026):

  1. The summary turns into a story prediction**

When you click "Generate Summary," we deliberately leave the character card out of the request to keep it cheap. The downside is that roleplay-tuned models (GLM, Kimi, Qwen) see in-character dialogue with no reminder that they're not playing the character — so they start writing the next scene instead of recapping what already happened. I just tested it with Claude 4.7 Opus and it gave a proper summary, which confirms our prompt is fine for general models but too soft for roleplay-tuned ones. The fix is on our end — someone with stronger prompt-engineering (@SpicyMarinara) needs to rework the instruction so even roleplay-tuned models stay out of character.

2. Save doesn't seem to do anything

Save is working — it just doesn't tell you it did. Here's how it actually saves you tokens:

Open Chat Settings → Context Limit, turn on "Limit Context Messages," and set it to whatever you want (e.g. 50). Now only the last 50 messages get sent to the AI each turn. Without a summary, anything older than that is just gone — the AI forgets it. With a summary saved, the summary gets attached to the prompt instead, so the AI still knows what happened in those older messages even though they're no longer being sent.

So: summary by itself = no token savings. Summary + Context Limit on = the AI keeps the plot in mind while you only pay for the recent messages.

You can verify it's being included by hovering over (or tapping on mobile) the last AI message in your chat — a row of small action buttons appears, and the eye icon in that row is "Peek Prompt." Click it and your summary should appear as a "Chat Summary" section in the prompt that gets sent. Note: the eye icon only shows up on the most recent AI message.

Image
<!-- gh-comment-id:4320846088 --> @LukaTheHero commented on GitHub (Apr 26, 2026): 1. The summary turns into a story prediction** When you click "Generate Summary," we deliberately leave the character card out of the request to keep it cheap. The downside is that roleplay-tuned models (GLM, Kimi, Qwen) see in-character dialogue with no reminder that they're not playing the character — so they start writing the *next scene* instead of recapping what already happened. I just tested it with Claude 4.7 Opus and it gave a proper summary, which confirms our prompt is fine for general models but too soft for roleplay-tuned ones. The fix is on our end — someone with stronger prompt-engineering (@SpicyMarinara) needs to rework the instruction so even roleplay-tuned models stay out of character. **2. Save doesn't seem to do anything** Save *is* working — it just doesn't tell you it did. Here's how it actually saves you tokens: Open **Chat Settings → Context Limit**, turn on **"Limit Context Messages,"** and set it to whatever you want (e.g. 50). Now only the last 50 messages get sent to the AI each turn. Without a summary, anything older than that is just gone — the AI forgets it. *With* a summary saved, the summary gets attached to the prompt instead, so the AI still knows what happened in those older messages even though they're no longer being sent. So: summary by itself = no token savings. Summary + Context Limit on = the AI keeps the plot in mind while you only pay for the recent messages. You can verify it's being included by hovering over (or tapping on mobile) the **last AI message** in your chat — a row of small action buttons appears, and the **eye icon** in that row is "Peek Prompt." Click it and your summary should appear as a "Chat Summary" section in the prompt that gets sent. Note: the eye icon only shows up on the most recent AI message. <img width="449" height="86" alt="Image" src="https://github.com/user-attachments/assets/df67b5ac-6ead-4991-bd77-2f0afaa32318" />
Author
Owner

@LukaTheHero commented on GitHub (Apr 26, 2026):

@Barafu

Quick follow-up — if you want to try fixing the issue yourself in the meantime, you can edit the summary prompt directly. On top panel → Agents → click the Automated Chat Summary agent → and rewrite the prompt. The current default is:

 Produce NEW summary content covering ONLY the latest events not yet captured in the existing summary.
 1. Do NOT rewrite or rephrase the existing summary. Do NOT repeat information already covered.
 2. Focus on:
    - New plot events and turning points since the last summary.
    - Fresh character developments, revelations, or relationship changes.
    - Changes to the current situation: new locations, actions, unresolved tensions.
    - New quests, goals, threats, or resolutions.
 3. Your output will be APPENDED to the existing summary, not replace it. Write only the new content — a continuation, not a rewrite.
 4. If the previous summary already covers everything, respond with an empty string.
 5. Match the tone and style of the existing summary.
 Respond ONLY with valid JSON.
 Schema:
 {
   "summary": "string — NEW events only, to be appended (1–3 paragraphs, or empty string if nothing new)."
 }

Try prepending something that snaps roleplay-tuned models out of the in-character mindset. For example:

You are an out-of-character story archivist. You are NOT a character in this story. You are NOT roleplaying. You do NOT continue, predict, or invent any events. You ONLY describe events that have ALREADY occurred in the chat log below, written in neutral past tense from a third-person observer's perspective. If the log does not contain something, do not include it. Never write dialogue, never write what a character "will" do, never speculate.

Produce NEW summary content covering ONLY the latest events not yet captured in the existing summary.
1. Do NOT rewrite or rephrase the existing summary. Do NOT repeat information already covered.
2. Focus on:
   - New plot events and turning points since the last summary.
   - Fresh character developments, revelations, or relationship changes.
   - Changes to the current situation: new locations, actions, unresolved tensions.
   - New quests, goals, threats, or resolutions.
3. Your output will be APPENDED to the existing summary, not replace it. Write only the new content — a continuation, not a rewrite.
4. If the previous summary already covers everything, respond with an empty string.
5. Match the tone and style of the existing summary.
Respond ONLY with valid JSON.
Schema:
{
  "summary": "string — NEW events only, to be appended (1–3 paragraphs, or empty string if nothing new)."
}

That extra paragraph at the top is usually enough to keep roleplay-tuned models in archivist mode instead of story-continuation mode. Tweak it to taste until we ship a proper fix.

<!-- gh-comment-id:4320856095 --> @LukaTheHero commented on GitHub (Apr 26, 2026): @Barafu Quick follow-up — if you want to try fixing the issue yourself in the meantime, you can edit the summary prompt directly. On top panel → **Agents** → click the **Automated Chat Summary** agent → and rewrite the prompt. The current default is: ``` Produce NEW summary content covering ONLY the latest events not yet captured in the existing summary. 1. Do NOT rewrite or rephrase the existing summary. Do NOT repeat information already covered. 2. Focus on: - New plot events and turning points since the last summary. - Fresh character developments, revelations, or relationship changes. - Changes to the current situation: new locations, actions, unresolved tensions. - New quests, goals, threats, or resolutions. 3. Your output will be APPENDED to the existing summary, not replace it. Write only the new content — a continuation, not a rewrite. 4. If the previous summary already covers everything, respond with an empty string. 5. Match the tone and style of the existing summary. Respond ONLY with valid JSON. Schema: { "summary": "string — NEW events only, to be appended (1–3 paragraphs, or empty string if nothing new)." } ``` Try prepending something that snaps roleplay-tuned models out of the in-character mindset. **For example:** ``` You are an out-of-character story archivist. You are NOT a character in this story. You are NOT roleplaying. You do NOT continue, predict, or invent any events. You ONLY describe events that have ALREADY occurred in the chat log below, written in neutral past tense from a third-person observer's perspective. If the log does not contain something, do not include it. Never write dialogue, never write what a character "will" do, never speculate. Produce NEW summary content covering ONLY the latest events not yet captured in the existing summary. 1. Do NOT rewrite or rephrase the existing summary. Do NOT repeat information already covered. 2. Focus on: - New plot events and turning points since the last summary. - Fresh character developments, revelations, or relationship changes. - Changes to the current situation: new locations, actions, unresolved tensions. - New quests, goals, threats, or resolutions. 3. Your output will be APPENDED to the existing summary, not replace it. Write only the new content — a continuation, not a rewrite. 4. If the previous summary already covers everything, respond with an empty string. 5. Match the tone and style of the existing summary. Respond ONLY with valid JSON. Schema: { "summary": "string — NEW events only, to be appended (1–3 paragraphs, or empty string if nothing new)." } ``` That extra paragraph at the top is usually enough to keep roleplay-tuned models in archivist mode instead of story-continuation mode. Tweak it to taste until we ship a proper fix.
Author
Owner

@Barafu commented on GitHub (Apr 27, 2026):

Thank you for the explanation. You really deserve the "TheHero" part.
After I changed the prompt in "automated summary" agent it works as it should.
Manual summary still needs fixing.

<!-- gh-comment-id:4326455188 --> @Barafu commented on GitHub (Apr 27, 2026): Thank you for the explanation. You really deserve the "TheHero" part. After I changed the prompt in "automated summary" agent it works as it should. Manual summary still needs fixing.
Author
Owner

@SpicyMarinara commented on GitHub (Apr 28, 2026):

Will look into the prompt, thanks for handling the case @LukaTheHero.

<!-- gh-comment-id:4333693470 --> @SpicyMarinara commented on GitHub (Apr 28, 2026): Will look into the prompt, thanks for handling the case @LukaTheHero.
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#93
No description provided.