From ec5c48ddf20e9b845468ca0793b1beba71ec105e Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 20 Mar 2026 19:45:21 +0000 Subject: [PATCH] fix: P4 stale worktree sweep doesn't cover sup-retry-* worktrees (#253) Co-Authored-By: Claude Opus 4.6 (1M context) --- supervisor/supervisor-poll.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/supervisor-poll.sh b/supervisor/supervisor-poll.sh index 4e6a3c4..8468c81 100755 --- a/supervisor/supervisor-poll.sh +++ b/supervisor/supervisor-poll.sh @@ -909,7 +909,7 @@ Instructions: # P4-PROJECT: Clean stale worktrees for this project # =========================================================================== NOW_TS=$(date +%s) - for wt in /tmp/${PROJECT_NAME}-worktree-* /tmp/${PROJECT_NAME}-review-*; do + for wt in /tmp/${PROJECT_NAME}-worktree-* /tmp/${PROJECT_NAME}-review-* /tmp/${PROJECT_NAME}-sup-retry-*; do [ -d "$wt" ] || continue WT_AGE_MIN=$(( (NOW_TS - $(stat -c %Y "$wt")) / 60 )) if [ "$WT_AGE_MIN" -gt 120 ]; then