Fix auto-continue with stream aborting Closes #3021

17b7f176765693b557dfe15be8cd7050cd24994f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +5 -0Showing whitespace changes
public/script.js+5 -0
@@ -4770,6 +4770,11 @@ export function shouldAutoContinue(messageChunk, isImpersonate) {
47704770 return false;
47714771 }
47724772
4773+ if (abortController && abortController.signal.aborted) {
4774+ console.debug('Auto-continue is not triggered because the generation was stopped.');
4775+ return false;
4776+ }
4777+
47734778 if (power_user.auto_continue.target_length <= 0) {
47744779 console.log('Auto-continue target length is 0, not triggering auto-continue');
47754780 return false;