From def1ba7814678cf2f345c3d8a5065e918598f96a Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 20 Mar 2026 14:45:03 +0000 Subject: [PATCH] fix: use numeric IN_PROGRESS_LABEL_ID in DELETE calls (cleanup_labels and cleanup) Review caught that cleanup_labels() and cleanup() still used the string name 'in-progress' in DELETE /labels/ URL paths. Switched both to use ${IN_PROGRESS_LABEL_ID} so label removal actually works on abort/crash. Co-Authored-By: Claude Opus 4.6 (1M context) --- dev/dev-agent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/dev-agent.sh b/dev/dev-agent.sh index 711f517..63f58c7 100755 --- a/dev/dev-agent.sh +++ b/dev/dev-agent.sh @@ -124,7 +124,7 @@ cleanup_worktree() { cleanup_labels() { curl -sf -X DELETE \ -H "Authorization: token ${CODEBERG_TOKEN}" \ - "${API}/issues/${ISSUE}/labels/in-progress" >/dev/null 2>&1 || true + "${API}/issues/${ISSUE}/labels/${IN_PROGRESS_LABEL_ID}" >/dev/null 2>&1 || true } CLAIMED=false @@ -137,7 +137,7 @@ cleanup() { log "cleanup: unclaiming issue (no PR created)" curl -sf -X DELETE \ -H "Authorization: token ${CODEBERG_TOKEN}" \ - "${API}/issues/${ISSUE}/labels/in-progress" >/dev/null 2>&1 || true + "${API}/issues/${ISSUE}/labels/${IN_PROGRESS_LABEL_ID}" >/dev/null 2>&1 || true curl -sf -X POST \ -H "Authorization: token ${CODEBERG_TOKEN}" \ -H "Content-Type: application/json" \