Merge remote-tracking branch 'origin/staging' into cloudflare-migration

This commit is contained in:
Kai ki
2026-06-28 11:21:20 +08:00
3 changed files with 8 additions and 6 deletions
+5 -4
View File
@@ -902,10 +902,11 @@ function PlayInner() {
lastSavedFingerprintRef.current = "";
}
})
// Defensive: saveStory is contracted never to throw, but if a future edit
// to this callback ever does, an unhandled rejection here would poison the
// chain and freeze ALL subsequent saves. Swallow to keep the chain alive.
.catch(() => {});
.catch(() => {
if (lastSavedFingerprintRef.current === fingerprint) {
lastSavedFingerprintRef.current = "";
}
});
}, [session]);
useEffect(() => {
currentSceneRef.current = currentScene;