From 4ef71b07575adb1cfda8312587191ef086cd1269 Mon Sep 17 00:00:00 2001 From: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 16:37:38 +0000 Subject: [PATCH] fix(#258): remove source-guard from CSMA library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The load guard ([[ -n GITHUB_API_CSMA_SH_LOADED ]] && return 0) prevents function definitions from loading when the env var is already set. This crashes callers that depend on the sourced functions. The guard is unnecessary — no script sources this library twice in the same shell session. Closes #258 --- internal/scaffold/fullsend-repo/scripts/lib/github-api-csma.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/scaffold/fullsend-repo/scripts/lib/github-api-csma.sh b/internal/scaffold/fullsend-repo/scripts/lib/github-api-csma.sh index a281397e2..b0cef071f 100644 --- a/internal/scaffold/fullsend-repo/scripts/lib/github-api-csma.sh +++ b/internal/scaffold/fullsend-repo/scripts/lib/github-api-csma.sh @@ -18,9 +18,6 @@ # shellcheck shell=bash -[[ -n "${GITHUB_API_CSMA_SH_LOADED:-}" ]] && return 0 -GITHUB_API_CSMA_SH_LOADED=1 - _github_csma_max_attempts() { echo "${GITHUB_CSMA_MAX_ATTEMPTS:-8}" }