From 4abdfb5f5cf3429107789e262dfcf8f21757cacf Mon Sep 17 00:00:00 2001 From: byrongamatos Date: Sun, 12 Jul 2026 21:25:26 +0200 Subject: [PATCH] fix(venue-crowd): fall back to the loop when the intro fails to load Codex preflight: a failed/timed-out intro left the song with no crowd loop at all. Co-Authored-By: Claude Fable 5 --- static/v3/venue-crowd.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/v3/venue-crowd.js b/static/v3/venue-crowd.js index 108e301..460656b 100644 --- a/static/v3/venue-crowd.js +++ b/static/v3/venue-crowd.js @@ -381,7 +381,13 @@ }; loadAndPlay(video, _manifest.intro.video, false, (ok) => { if (_introGen !== myGen) return; - if (!ok || !_venueActive) { _introActive = false; return; } + if (!ok || !_venueActive) { + // Failed intro must not leave the song loop-less: fall back + // to the normal loop exactly like the no-intro path. + _introActive = false; + if (_venueActive) showLoop(machine.current, FADE_MS); + return; + } fadeMixTo(layer === 1 ? 1 : 0, 300); video.addEventListener('ended', land); setTimeout(land, 15000); // decode-stall safety