Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Mar 03:57
· 2 commits to main since this release

Added

  • Session PID Tracking: Tracks processes spawned by Bash tool calls via PostToolUse hook
  • Automatically cleans up orphan processes from crashed sessions on next SessionStart
  • SessionEnd hook marks clean exits to distinguish from crashes
  • Triple verification before killing tracked processes (PID + start time + command)
  • /check command now shows tracked session processes alongside allowlist matches
  • Stale tracking file cleanup (>24h) on session start
  • Test suite for session tracking (tests/test-tracking.sh)
  • /check command now shows tracked session processes alongside allowlist matches

Changed

  • get_filter_pattern() now auto-generated from pattern arrays (no manual dual-maintenance)

How It Works

  • PostToolUse(Bash) hook snapshots new PPID=1 processes after each Bash tool call (~50ms overhead)
  • Processes are stored in per-session tracking files with full identification (PID, lstart, command)
  • On next SessionStart: crash exit → auto-kill tracked orphans; clean exit → silently skip
  • Complements existing allowlist scanning (allowlist handles known patterns, tracking handles arbitrary scripts)