From 8b64f006e8fc2df096daa18dba04b0ec26ff8544 Mon Sep 17 00:00:00 2001 From: ebolam Date: Thu, 27 Apr 2023 08:17:55 -0400 Subject: [PATCH] Set the browser to refresh when loading a story to fix a race condition --- static/koboldai.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/koboldai.js b/static/koboldai.js index cc10096d..80156d11 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -262,6 +262,7 @@ function disruptStoryState() { function reset_story() { console.log("Resetting story"); + location.reload(); disruptStoryState(); chunk_delete_observer.disconnect(); clearTimeout(calc_token_usage_timeout);