Skip to content

feat: add auto-kill rules for idle ports#105

Merged
productdevbook merged 1 commit intomainfrom
feat/auto-kill-rules
Mar 9, 2026
Merged

feat: add auto-kill rules for idle ports#105
productdevbook merged 1 commit intomainfrom
feat/auto-kill-rules

Conversation

@productdevbook
Copy link
Copy Markdown
Owner

Summary

  • Configurable auto-kill rules that terminate processes after a timeout
  • Rules match by process name pattern (glob with * wildcard) and/or port number
  • Timeout configurable from 1 to 1440 minutes (24 hours)
  • Optional notification before killing
  • Per-rule enable/disable toggle
  • Settings UI with add/edit/delete rule management
  • Rules checked on every port scan cycle

Example Rules

  • "Kill idle Node.js after 30 min" — Process: node*, Timeout: 30 min
  • "Kill port 8080 after 1 hour" — Port: 8080, Timeout: 60 min

Closes #30

Test plan

  • Add a new auto-kill rule in Settings > Auto-Kill Rules
  • Set process pattern (e.g. node*) and timeout
  • Verify process matching works (start a matching process)
  • Verify process is killed after timeout expires
  • Verify notification appears when notifyBeforeKill is enabled
  • Edit existing rules via pencil icon
  • Delete rules via trash icon
  • Disable a rule and verify it no longer triggers
  • Rules with empty pattern AND port 0 cannot be saved

🤖 Generated with Claude Code

Add configurable rules to automatically kill processes after a timeout.
Rules match by process name pattern (glob with * wildcard) and/or port
number. Includes optional notification before kill, enable/disable per
rule, and a Settings UI for managing rules.

Closes #30

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@productdevbook productdevbook merged commit 47fa3c9 into main Mar 9, 2026
2 checks passed
@productdevbook productdevbook deleted the feat/auto-kill-rules branch March 9, 2026 07:29
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.

feat: Auto-kill rules for idle ports

1 participant