mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4869] [Issue]: Preserve Game client state across persistence boundaries #2695
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#2695
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 @Xelvanis on GitHub (Aug 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4869
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Several Game client-state values do not survive their real persistence boundaries consistently: Game's Send-on-Enter preference is omitted from cross-device sync, tutorial dismissal is omitted from browser-local persistence, and Session Logs ignore stored token/session metadata when
Message.extraarrives as JSON text. The UI store also retains ten obsolete version gates that duplicate unconditional canonicalization.Expected behavior
tokenCountvalues and start at the latestisConversationStartmarker whether message metadata arrives as an object or a JSON string.Actual behavior
enterToSendGameis browser-local only and is absent frompickSyncedSettings.gameTutorialDisabledis synchronized but absent from the Zustand persistpartializeprojection.message.extraas though it were always an object, so the normal persisted JSON-string transport shape loses stored token counts and session-start markers in the visible Session Logs estimate.Steps to reproduce
extracontainstokenCountandisConversationStart, then load them through the ordinary API whereextrais returned as JSON text.Environment
stagingcommitc87be14dae617adba9e71adb783752fc81efc254Logs, screenshots, or video
A disposable seeded Game session reproduced the transport shape and verified the corrected visible result on desktop and a 390×844 mobile viewport. With a 999-token message before the latest start marker and persisted current-session counts of 40, 80, and 120, Session Logs correctly displayed
~240 tokensafter the fix.Additional context
Suggested bounded scope:
parseMessageExtraRecordhelper;enterToSendGameto the synchronized projection;gameTutorialDisabledto browser-local persistence while retaining sync;This affects UI preferences and a displayed estimate only. It does not alter server prompt context, generation, chats, messages, characters, Personas, or lorebooks.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: