mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8309] Game Mode: the GM's format reminder keeps most of each turn's prompt out of the provider cache #8242
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#8242
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 @kolacheee on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8309
Originally assigned to: @kolacheee on GitHub.
What happens
Every Game turn rebuilds the whole format reminder (output format, commands, ruleset guidance, sheets, inventory, scene state) and sends it after the history. Providers cache a prompt's prefix, so only the system prompt is cached: the history behind it is re-read in full each turn, because the reminder before the previous player message differs from the one sent now.
Measured on a 13-turn 5e game across Gemini 3.8 Flash, 3.5 Flash-Lite, 3.1 Pro, Claude Haiku/Sonnet/Opus 5.5 and GPT-5.6 Terra: on ordinary consecutive turns about 30% of the prompt came from cache.
Separately, the narration screen mishandles a few speaker-line shapes models write:
[Name] [main] [side] [expr]: …shows[Name]as narration andmainas the speaker.[Name] [main|thinking]: …usesmain|thinkingas the sprite.[Name] [thought] - …shows the raw brackets.[Name] [whisper:Target] [expr]: …loses its target and type: the unknown-tag stripper removes[whisper:Target].Expected
The instructions that hold for the whole game are cached with the system prompt, and only what changes turn to turn follows the history. Drifted speaker lines show as the character's line, and a whisper shows as a whisper.
@coderabbitai[bot] commented on GitHub (Oct 25, 2026):
⚠️ Possible Duplicate Issue(s)
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!