From eceaa9cacccebc8f08213230986e9254f1aa30cb Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 25 Feb 2025 21:32:39 +0200 Subject: [PATCH] Replace debounced save with regular --- public/scripts/reasoning.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index d475ca3f9..80629d3da 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -998,7 +998,7 @@ function parseReasoningFromString(str, { strict = true } = {}) { } function registerReasoningAppEvents() { - const eventHandler = (/** @type {number} */ idx) => { + const eventHandler = async (/** @type {number} */ idx) => { if (!power_user.reasoning.auto_parse) { return; } @@ -1048,7 +1048,7 @@ function registerReasoningAppEvents() { if (contentUpdated) { syncMesToSwipe(); - saveChatDebounced(); + await saveChatConditional(); // Find if a message already exists in DOM and must be updated const messageRendered = document.querySelector(`.mes[mesid="${idx}"]`) !== null;