Resume straight into the next node after finishing a level

continueAfterGoal sent non-level next nodes to '/' (the splash), forcing a
manual Resume; use the /?resume=1 fast-path so the debrief dialogue plays
immediately, matching the phone-connect handoff.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-22 21:59:41 +02:00
co-authored by Claude Opus 4.8
parent f4c9d30505
commit 93febcaef9
+1 -1
View File
@@ -458,7 +458,7 @@ export function App() {
if (!response.ok) { setStatus('OBJECTIVE COMPLETE · STORY ADVANCE UNAVAILABLE'); return }
const next = await response.json() as PlaythroughState
if (next.node?.kind === 'level' && next.node.levelSlug) window.location.assign(`/level/${encodeURIComponent(next.node.levelSlug)}`)
else window.location.assign('/')
else window.location.assign('/?resume=1') // resume straight into the next node, not the splash
} finally { setAdvancing(false) }
}