Summary
Mac Mini ran out of pseudo-terminal devices (511 max). All job execution blocked.
Root Cause
Terminal.app accumulated 618 orphaned windows from osascript do script calls (steer, SSH management). Each allocates a pty, never closes.
Impact
- All Jensen jobs fail:
tmux new-session returned non-zero exit status 1
OSError: out of pty devices
- Health score: 30
Fix Applied
osascript -e 'tell application "Terminal" to close every window' -- freed 470+ ptys.
Prevention Needed
- env-hygiene.sh: count Terminal windows, close excess (max 5)
- steer: close Terminal windows after use
- Health monitoring: add
who | wc -l -- alert if > 50
- Morning report: include Terminal window count
Summary
Mac Mini ran out of pseudo-terminal devices (511 max). All job execution blocked.
Root Cause
Terminal.app accumulated 618 orphaned windows from osascript
do scriptcalls (steer, SSH management). Each allocates a pty, never closes.Impact
tmux new-session returned non-zero exit status 1OSError: out of pty devicesFix Applied
osascript -e 'tell application "Terminal" to close every window'-- freed 470+ ptys.Prevention Needed
who | wc -l-- alert if > 50