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) {
4770 return false;4770 return false;
4771 }4771 }
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
4773 if (power_user.auto_continue.target_length <= 0) {4778 if (power_user.auto_continue.target_length <= 0) {
4774 console.log('Auto-continue target length is 0, not triggering auto-continue');4779 console.log('Auto-continue target length is 0, not triggering auto-continue');
4775 return false;4780 return false;