[priority: 3] Prestige store partialize missing defeatedGuardians/signedPacts/pact progress #81

Closed
opened 2026-05-19 09:11:18 +02:00 by Anexim · 2 comments
Owner

Severity: 3 — Medium
File: src/lib/game/stores/prestigeStore.ts

Description:
Critical loop-specific state is not persisted: defeatedGuardians, signedPacts, pactRitualFloor, pactRitualProgress, loopInsight, and pactSlots. On refresh, guardians you've defeated and pacts you've signed disappear. An in-progress pact ritual is silently aborted.

Fix: Add these fields to partialize if they should survive refresh.

**Severity:** 3 — Medium **File:** `src/lib/game/stores/prestigeStore.ts` **Description:** Critical loop-specific state is not persisted: `defeatedGuardians`, `signedPacts`, `pactRitualFloor`, `pactRitualProgress`, `loopInsight`, and `pactSlots`. On refresh, guardians you've defeated and pacts you've signed disappear. An in-progress pact ritual is silently aborted. **Fix:** Add these fields to `partialize` if they should survive refresh.
Anexim added the ai:todo label 2026-05-19 09:11:18 +02:00
n8n-gitea was assigned by Anexim 2026-05-19 09:11:18 +02:00
Author
Owner

Starting work on prestige store partialize fix.

Starting work on prestige store partialize fix.
Author
Owner

Fixed. Added defeatedGuardians, signedPacts, signedPactDetails, pactRitualFloor, pactRitualProgress, loopInsight, and pactSlots to the prestige store's partialize function. Guardian/pact state now persists across page refreshes. Regression tests added.

✅ Fixed. Added `defeatedGuardians`, `signedPacts`, `signedPactDetails`, `pactRitualFloor`, `pactRitualProgress`, `loopInsight`, and `pactSlots` to the prestige store's `partialize` function. Guardian/pact state now persists across page refreshes. Regression tests added.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#81