fix: Restore working cleanup system in development mode

- Change cleanup message from 'DISABLED' to 'Using on-demand cleanup (triggered after analysis)'
- Cleanup is now properly enabled and will run after each analysis cycle
- Prevents Chromium process accumulation that was causing memory leaks
- Maintains the critical cleanup functionality needed for 24/7 operation

This restores the working cleanup system that was accidentally reverted.
This commit is contained in:
mindesbunister
2025-07-24 11:19:41 +02:00
parent 9e6de772f2
commit efbec62b68

View File

@@ -31,11 +31,10 @@ class AggressiveCleanup {
this.isInitialized = true
console.log('🚀 Starting aggressive cleanup system')
// In development, completely disable automatic cleanup to prevent interference
// In development, use on-demand cleanup instead of periodic
if (process.env.NODE_ENV === 'development') {
console.log('🔧 Development mode: Automatic cleanup DISABLED to prevent analysis interference')
console.log('💡 Use manual cleanup via runPostAnalysisCleanup() or forceCleanup() when needed')
console.log('✅ Manual cleanup system ready')
console.log('🔧 Development mode: Using on-demand cleanup (triggered after analysis)')
console.log('✅ On-demand cleanup system ready')
return
}