From adc3eeea51615e190d62e6e3873871b464a80323 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 11 Jul 2024 00:32:45 +0300 Subject: [PATCH] Fix /trigger getting stuck on generation lock timeout --- public/scripts/slash-commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 419ed81f3..533ca5e36 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2472,6 +2472,7 @@ async function triggerGenerationCallback(args, value) { } catch { console.warn('Timeout waiting for generation unlock'); toastr.warning('Cannot run /trigger command while the reply is being generated.'); + outerResolve(Promise.resolve('')); return ''; }