mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4870] [MERGED] Fix Game persisted settings and Session Log metadata #6521
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#6521
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4870
Author: @Xelvanis
Created: 8/10/2026
Status: ✅ Merged
Merged: 8/10/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/ui-settings-persistence📝 Commits (2)
1da4fdefix: preserve Game client persisted state33a749efix: require boolean Game session markers📊 Changes
5 files changed (+204 additions, -77 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/game/GameNarration.tsx(+2 -28)➕
packages/client/src/lib/game-session-history.ts(+35 -0)📝
packages/client/src/stores/ui.store.ts(+2 -49)📝
scripts/regressions/open-issues.regression.ts(+164 -0)📄 Description
Linked issue
Closes #4869
Why this change
Game preferences and persisted narration metadata currently cross browser-local, server-sync, and JSON transport boundaries inconsistently. That can make Game's Send-on-Enter choice fail to follow the user's settings profile, let an offline restart resurrect the Game tutorial, and make Session Logs ignore stored token counts or the current-session marker.
The nearby UI-store migration also retains ten version gates whose work is repeated immediately by unconditional canonicalizers.
What changed
enterToSendGameto the synchronized UI settings projection.gameTutorialDisabledto browser-local persistence while retaining its existing server sync.parseMessageExtraRecordwhen Session Logs estimate the current Game session, including JSON-string metadata, the latestisConversationStartmarker, valid finite positive token counts, and malformed/absent fallback.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkagainst the final committed tree.pnpm regression:issuesaggregate; expected negative-fixture WARN/ERROR logs were emitted and the aggregate passed.git diff --check.extratransport shape.~240 tokens, excluding the pre-marker 999-token message.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The
[Unreleased]changelog is updated. No user documentation, translated documentation, or version files require changes.UI evidence (if applicable)
The affected UI is an existing Session Logs text estimate rather than a layout/style change. Headed desktop and mobile proof is described above; no repository image assets were added.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.