mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5928] Eight e2e files hand-write the UI store persist payload and would drift silently on a rename #3276
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#3276
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 (Sep 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5928
Originally assigned to: @SpicyMarinara on GitHub.
Eight e2e files hand-write the UI store's localStorage persist payload — the literal
marinara-engine-uikey, theversionnumber, and whicheverstateflags each testneeds (
e2e/core-flows.e2e.tsalone does it at five sites; the others:client-runtime-diagnostics,game-verb-only-turn,generation-recovery,illustration-arrival,illustrator-manual-cadence,issue-sweep-chat,issue-sweep-settings). The store's actual contract lives inuseUIStore's persistconfig in the client. If a key or flag renames on one side only, nothing fails loudly:
the missing field falls back to its default and the test silently exercises a
different configuration than it claims — a wheel-nav test with
gameMiddleMouseNavquietly off, for example, would pass or fail for the wrong reason.
The smallest honest fix is one shared e2e helper (or exported persist constants the
client and the tests both import) that owns the storage key, the version, and a typed
seed function, with the eight files migrated onto it in one mechanical pass. Worth
deciding at the same time: whether the helper should assert at seed time that every
flag it writes exists in the store's current persist shape, which is what would turn a
future rename into a loud failure instead of a silent default.
@SpicyMarinara commented on GitHub (Sep 7, 2026):
Owner: @SpicyMarinara; Codex is taking this in draft issue-sweep PR #5929. Existing issue-linked branches and open/draft PRs were checked before starting. I will verify the reported behavior against current staging and keep the fix and regression proof focused.
@SpicyMarinara commented on GitHub (Sep 7, 2026):
Fixed in #5929, merged into staging as
4f67630e6. Current fixtures share the typed persistence contract; explicit migration tests retain their legacy payloads. Full regression matrix passed.