mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #236] [Issue]: Summary does not work for me. #93
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Logs, screenshots, or video
Additional context
Template check
This "Template check" is the only thing that is hidden behind the scrollbar.
@LukaTheHero commented on GitHub (Apr 26, 2026):
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.
@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:
Try prepending something that snaps roleplay-tuned models out of the in-character mindset. For example:
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.
@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.
@SpicyMarinara commented on GitHub (Apr 28, 2026):
Will look into the prompt, thanks for handling the case @LukaTheHero.