mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8253] Game Mode: the GM prompt misses the prompt cache whenever the scene changes #8331
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#8331
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 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8253
Originally assigned to: @kolacheee on GitHub.
A player reported that every Game Mode message in a long session cost about 250k input tokens. Within one session the GM is sent the whole session history every turn, so prompt caching is what keeps a long session affordable.
Caching only reuses a prompt up to its first changed byte. The GM system prompt comes before the history, and it carries state that changes from turn to turn:
Any change to one of these makes the provider miss the cache for the whole history after it. On Claude, with caching turned on, each miss is also billed as a cache write at 1.25×.
Expected: the system prompt stays byte-identical while the scene changes, and the changing state reaches the GM after the history.