feat(tmux): implement 2-hour inactivity session TTL reaper and prune command

This commit is contained in:
operator
2026-10-05 16:23:45 +00:00
parent c13ee20ea4
commit 945e6bb481
4 changed files with 72 additions and 0 deletions
+3
View File
@@ -22,3 +22,6 @@ done
find /tmp -name "*-smoke.log" -mtime +7 -delete 2>/dev/null
find /tmp -name "otp_*.py" -mtime +1 -delete 2>/dev/null
find /tmp -name "check_*.py" -mtime +1 -delete 2>/dev/null
# Prune unattached stale agent tmux sessions older than 2 hours (7200s)
python3 "$(cd "$(dirname "$0")" && pwd)/muse-tmux.py" prune --ttl 7200 2>/dev/null || true