From ccdb4780d62d0e9f143e9e6f1b1a0d2e2ca90b9c Mon Sep 17 00:00:00 2001 From: yuanzonghao Date: Sat, 13 Jun 2026 19:09:04 +0800 Subject: [PATCH] fix(play): throw AbortError on cancelled prefetch to avoid false analytics Co-Authored-By: Claude Fable 5 --- app/play/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/play/page.tsx b/app/play/page.tsx index fa13a57..f3d11f1 100644 --- a/app/play/page.tsx +++ b/app/play/page.tsx @@ -375,7 +375,7 @@ function prefetchScenePath( const prefetchT0 = Date.now(); const promise = (async () => { const data = await requestScene({ session: specSession, clientTts }); - if (abort.signal.aborted) throw new Error("aborted"); + if (abort.signal.aborted) throw new DOMException("aborted", "AbortError"); // Record this resolved alternate for the gallery export. Key is // (parent scene id at the choice point) : (choice id). Includes the