From cf8f59b7370203572b5d14169639e12f9633bd24 Mon Sep 17 00:00:00 2001 From: operator-main Date: Sun, 4 Oct 2026 16:39:30 +0000 Subject: [PATCH] fix(watchdog): generalize CDP page health check for Muse targets --- bin/chromebox-watchdog.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/chromebox-watchdog.sh b/bin/chromebox-watchdog.sh index b6aa3cb..4dd187c 100755 --- a/bin/chromebox-watchdog.sh +++ b/bin/chromebox-watchdog.sh @@ -64,8 +64,10 @@ healthy() { local list list="$(cdp_list)" \ || { HEALTH_FAIL_REASON="CDP unreachable on :$CDP_PORT"; return 1; } - echo "$list" | grep -q '"title": ".*Chat' \ - || { HEALTH_FAIL_REASON="CDP up but no Chat page in target list"; return 1; } + echo "$list" | grep -q '"type": "page"' \ + || { HEALTH_FAIL_REASON="CDP up but no page target in list"; return 1; } + echo "$list" | grep -E -q '"url": "https://muse\.ai' \ + || { HEALTH_FAIL_REASON="CDP up but not on muse.ai"; return 1; } return 0 }