From ab8f88303cfe6cb0e38f4433c63349111cf851e2 Mon Sep 17 00:00:00 2001 From: openhands Date: Wed, 25 Mar 2026 08:00:29 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20fix:=20check=5Factive=20guard=20should?= =?UTF-8?q?=20log=20to=20stderr=20when=20skipping=20=E2=80=94=20silent=20a?= =?UTF-8?q?gent=20dropout=20on=20missing=20state=20file=20(#663)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/guard.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/guard.sh b/lib/guard.sh index 172bf60..4f906e1 100644 --- a/lib/guard.sh +++ b/lib/guard.sh @@ -15,6 +15,7 @@ check_active() { local agent_name="$1" local state_file="${FACTORY_ROOT}/state/.${agent_name}-active" if [ ! -f "$state_file" ]; then + echo "[check_active] SKIP: state file state/.${agent_name}-active not found — agent disabled" >&2 log "${agent_name} not active — skipping" exit 0 fi