From 3a1df8f2336cb8d28310251cbb0e4772a0409287 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 20 Mar 2026 17:15:03 +0000 Subject: [PATCH 1/2] fix: dev-poll.sh has no explicit guard for `action`-labeled issues (#233) Add skip guards for `action`, `prediction/backlog`, and `prediction/unreviewed` labels in both the orphan scan and backlog scan, matching the existing `formula` guard pattern. Issues with these labels will no longer be picked up by dev-agent. Co-Authored-By: Claude Opus 4.6 (1M context) --- dev/dev-poll.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dev/dev-poll.sh b/dev/dev-poll.sh index f20ab0d..c7d6ba5 100755 --- a/dev/dev-poll.sh +++ b/dev/dev-poll.sh @@ -301,8 +301,9 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then # Formula guard: formula-labeled issues should not be worked on by dev-agent. # Remove in-progress label and skip to prevent infinite respawn cycle (#115). ORPHAN_LABELS=$(echo "$ORPHANS_JSON" | jq -r '.[0].labels[].name' 2>/dev/null) || true - if echo "$ORPHAN_LABELS" | grep -qw 'formula'; then - log "issue #${ISSUE_NUM} has 'formula' label — removing in-progress, skipping" + SKIP_LABEL=$(echo "$ORPHAN_LABELS" | grep -oE '^(formula|action|prediction/backlog|prediction/unreviewed)$' | head -1) || true + if [ -n "$SKIP_LABEL" ]; then + log "issue #${ISSUE_NUM} has '${SKIP_LABEL}' label — removing in-progress, skipping" curl -sf -X DELETE -H "Authorization: token ${CODEBERG_TOKEN}" \ "${API}/issues/${ISSUE_NUM}/labels/in-progress" >/dev/null 2>&1 || true exit 0 @@ -510,8 +511,9 @@ for i in $(seq 0 $((BACKLOG_COUNT - 1))); do # Formula guard: formula-labeled issues must not be picked up by dev-agent. # A formula issue that accidentally acquires the backlog label should be skipped. ISSUE_LABELS=$(echo "$BACKLOG_JSON" | jq -r ".[$i].labels[].name" 2>/dev/null) || true - if echo "$ISSUE_LABELS" | grep -qw 'formula'; then - log "issue #${ISSUE_NUM} has 'formula' label — skipping in backlog scan" + SKIP_LABEL=$(echo "$ISSUE_LABELS" | grep -oE '^(formula|action|prediction/backlog|prediction/unreviewed)$' | head -1) || true + if [ -n "$SKIP_LABEL" ]; then + log "issue #${ISSUE_NUM} has '${SKIP_LABEL}' label — skipping in backlog scan" continue fi From efe48d4adce94a053ae3e969cbdaef3e93830b04 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 20 Mar 2026 17:18:15 +0000 Subject: [PATCH 2/2] ci: retrigger pipeline