Fix auto-continue with stream aborting Closes #3021
| @@ -4770,6 +4770,11 @@ export function shouldAutoContinue(messageChunk, isImpersonate) { | ||
| 4770 | 4770 | return false; |
| 4771 | 4771 | } |
| 4772 | 4772 | |
| 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 | 4778 | if (power_user.auto_continue.target_length <= 0) { |
| 4774 | 4779 | console.log('Auto-continue target length is 0, not triggering auto-continue'); |
| 4775 | 4780 | return false; |