From 4c0a1c28127ed62c4584cdb984069fe2f790b461 Mon Sep 17 00:00:00 2001 From: nanobot Date: Sun, 6 Sep 2026 22:19:51 +0800 Subject: [PATCH] deploy: match Unknown-channel warnings by pipeline format Agent tool-call echoes also hit this journal and can contain the literal string; require '| WARNING | - | Unknown channel:' to avoid false positives in the channel check. --- scripts/deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index faf2864a..28acceaa 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -98,9 +98,12 @@ verify_deps() { channels_check() { # $1 = since timestamp; 0 if all expected channels are up local since="$1" journal enabled ch journal=$(journal_since "$since") - if grep -q "Unknown channel" <<<"$journal"; then + # Match the actual warning-pipeline format, not bare 'Unknown channel' — + # the gateway also logs agent tool calls to this journal, and those echo + # the literal string when the agent greps for it (false positives). + if grep -qF '| WARNING | - | Unknown channel:' <<<"$journal"; then log "CHANNEL CHECK FAILED: 'Unknown channel' logged since restart:" - grep "Unknown channel" <<<"$journal" | head -3 | sed 's/^/[deploy] /' + grep -F '| WARNING | - | Unknown channel:' <<<"$journal" | head -3 | sed 's/^/[deploy] /' return 1 fi enabled=$(grep -o "Channels enabled:.*" <<<"$journal" | tail -1 | sed 's/Channels enabled: *//' || true)