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:
+1
-1
@@ -458,7 +458,7 @@ export function App() {
|
|||||||
if (!response.ok) { setStatus('OBJECTIVE COMPLETE · STORY ADVANCE UNAVAILABLE'); return }
|
if (!response.ok) { setStatus('OBJECTIVE COMPLETE · STORY ADVANCE UNAVAILABLE'); return }
|
||||||
const next = await response.json() as PlaythroughState
|
const next = await response.json() as PlaythroughState
|
||||||
if (next.node?.kind === 'level' && next.node.levelSlug) window.location.assign(`/level/${encodeURIComponent(next.node.levelSlug)}`)
|
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) }
|
} finally { setAdvancing(false) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user