Skip to content

feat : Zombie Process Reaper Integration (Issue #38)#39

Merged
Surajkumar5050 merged 5 commits intoSurajkumar5050:mainfrom
ThaRealJozef:feature/zombie-process-reaper
Feb 10, 2026
Merged

feat : Zombie Process Reaper Integration (Issue #38)#39
Surajkumar5050 merged 5 commits intoSurajkumar5050:mainfrom
ThaRealJozef:feature/zombie-process-reaper

Conversation

@ThaRealJozef
Copy link
Collaborator

@ThaRealJozef ThaRealJozef commented Feb 10, 2026

Description

This PR implements the Zombie Process Reaper, a proactive system monitoring feature that identifies idle, resource-heavy processes and prompts the user via Telegram to take action.

Changes Made:

  • New Feature Module: src/zyron/features/zombie_reaper.py
    • Monitors foreground window activity to track process usage.
    • Scans every minute for processes > 1024Mb(1Gb) RAM that have been idle for > 3 hours.
    • Manages a persistent whitelist (src/zyron/utils/zombie_whitelist.json).
  • Telegram Integration: src/zyron/agents/telegram.py
    • Added zombie_alert_callback to send formatted alerts.
    • Added interactive buttons: Kill, Whitelist, Ignore (1h).
    • Handles async loop bridging for background thread callbacks.
    • Auto-Start: Persists chat_id to telegram_chat_id.txt to enable automatic monitoring on restart without /start.

✅ Pre-Push Checklist:

  • I have updated pyproject.toml with any new dependencies.
  • I have run setup.bat and verified the installation is successful.
  • I have verified that start_zyron.bat launches without module errors.
  • I have updated README.md if new commands or features were added.
  • I have linked this PR to an existing Issue (Closes Proactive System Hygiene: The "Zombie Process" Reaper #38).

Screenshots/Gifs (If UI changes):

image

note: the 5min idle in this screenshot and the 0min is for testing purposes, it's actually 3 hours idle then report back


Maintaining Zyron stability is our priority!

@ThaRealJozef ThaRealJozef force-pushed the feature/zombie-process-reaper branch from eea4e07 to 185b395 Compare February 10, 2026 17:16
@Surajkumar5050 Surajkumar5050 merged commit a1dc0fc into Surajkumar5050:main Feb 10, 2026
2 checks passed
Copy link
Owner

@Surajkumar5050 Surajkumar5050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work bro!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proactive System Hygiene: The "Zombie Process" Reaper

2 participants