Merge pull request 'fix: fix: check_active guard should log to stderr when skipping — silent agent dropout on missing state file (#663)' (#673) from fix/issue-663 into main

This commit is contained in:
johba 2026-03-25 09:27:10 +01:00
commit eb373bb961

View file

@ -15,6 +15,7 @@ check_active() {
local agent_name="$1" local agent_name="$1"
local state_file="${FACTORY_ROOT}/state/.${agent_name}-active" local state_file="${FACTORY_ROOT}/state/.${agent_name}-active"
if [ ! -f "$state_file" ]; then 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" log "${agent_name} not active — skipping"
exit 0 exit 0
fi fi