Fix auto-continue with stream aborting Closes #3021
| @@ -4775,6 +4775,11 @@ export function shouldAutoContinue(messageChunk, isImpersonate) { | ||
| 4775 | 4775 | return false; |
| 4776 | 4776 | } |
| 4777 | 4777 | |
| 4778 | + if (abortController && abortController.signal.aborted) { | |
| 4779 | + console.debug('Auto-continue is not triggered because the generation was stopped.'); | |
| 4780 | + return false; | |
| 4781 | + } | |
| 4782 | + | |
| 4778 | 4783 | if (power_user.auto_continue.target_length <= 0) { |
| 4779 | 4784 | console.log('Auto-continue target length is 0, not triggering auto-continue'); |
| 4780 | 4785 | return false; |