Fix auto-continue with stream aborting Closes #3021

2030c2c71136d1325491ea2e98fae375a5f936ec

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

1 files changed, +5 -0Ignore whitespace
public/script.js+5 -0
@@ -4775,6 +4775,11 @@ export function shouldAutoContinue(messageChunk, isImpersonate) {
47754775 return false;
47764776 }
47774777
4778+ if (abortController && abortController.signal.aborted) {
4779+ console.debug('Auto-continue is not triggered because the generation was stopped.');
4780+ return false;
4781+ }
4782+
47784783 if (power_user.auto_continue.target_length <= 0) {
47794784 console.log('Auto-continue target length is 0, not triggering auto-continue');
47804785 return false;