mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1239] [Issue]: Refactor startup rejects snapshot personaStats arrays #607
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#607
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 (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1239
Originally assigned to: @Xelvanis on GitHub.
Summary
Existing refactor save data can store
game-state-snapshots.personaStatsas an array, but startup JSON-field migration treated it as an object/null field. On launch, affected save data can fail initialization withinvalid_input: personaStats must be a JSON object or null.Expected behavior
Tauri desktop startup should accept snapshot
personaStatsarrays and preserve valid tracker snapshot data.Actual behavior
Startup migration can reject rows where
game-state-snapshots.personaStatsis an array, preventing the app from opening existing save data.Steps to reproduce
game-state-snapshotsrow whosepersonaStatsfield is a JSON array.personaStatsshape error.Impact area
Environment
refactorLogs, screenshots, or video
Observed local startup error:
Regression notes
This is a refactor storage migration/data-shape mismatch. Tracker snapshot readers and writers use array/null semantics for
personaStats, but startup migration was normalizing the field as object/null.Additional context
A fix branch adds migration coverage for array/null snapshot
personaStatsand a startup repair path for malformed old snapshot rows so one damaged row does not abort initialization.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Xelvanis commented on GitHub (May 26, 2026):
Fix PR opened: #1240