From cb565e818361cccd26f0a46b83d6b817586713c3 Mon Sep 17 00:00:00 2001 From: johba Date: Sun, 22 Mar 2026 05:17:07 +0000 Subject: [PATCH] fix: line 202: git apply failure path (after --check passes) still uses bare `continue`, bypassing STOP_REQUESTED (#979) When `git apply --check` passes but `git apply` itself fails, the code now checks STOP_REQUESTED before continuing to the next iteration, consistent with the check at the end of the main loop. Co-Authored-By: Claude Opus 4.6 (1M context) --- tools/push3-evolution/evolution-daemon.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/push3-evolution/evolution-daemon.sh b/tools/push3-evolution/evolution-daemon.sh index fbffcb7..3ce0d03 100755 --- a/tools/push3-evolution/evolution-daemon.sh +++ b/tools/push3-evolution/evolution-daemon.sh @@ -199,6 +199,10 @@ while true; do else log " ERROR: patch failed to apply — skipping run (evaluation semantics would differ from intended)" log " Hint: evolution.patch may need regeneration if onchain/ files changed upstream." + if [ "$STOP_REQUESTED" = "true" ]; then + log "Stop requested — daemon exiting after failed patch apply." + exit 0 + fi continue fi else