fix: resume campaign progress safely

This commit is contained in:
2026-07-29 01:13:57 +09:00
parent 90de2a3559
commit 6f2b6e42a4
31 changed files with 9354 additions and 148 deletions

View File

@@ -206,12 +206,14 @@ function validateCampInteractionUxGuards() {
checkedGuardCount += 1;
expectCampUx(
steppedNavigationMethod.includes('const previousStep = getCampaignState().step') &&
steppedNavigationMethod.includes('markCampaignStep(step)') &&
steppedNavigationMethod.includes('getCampaignState().step === step') &&
steppedNavigationMethod.includes('markCampaignStep(previousStep)') &&
steppedNavigationMethod.includes('const previousCampaign = getCampaignState()') &&
steppedNavigationMethod.includes('beginCampaignStory(') &&
steppedNavigationMethod.includes('const startsBattle =') &&
steppedNavigationMethod.includes('markCampaignStep(step, {') &&
steppedNavigationMethod.includes('startBattle: startsBattle') &&
steppedNavigationMethod.includes('saveCampaignState(previousCampaign)') &&
navigationMethod.includes('recoverState?.()'),
'campaign-step navigation must restore the previous step when lazy scene loading fails'
'campaign-step navigation must atomically begin stories and restore the complete previous campaign when lazy scene loading fails'
);
checkedGuardCount += 1;