From 8a9a9cbbe598715cc5b18b44801a0fa0372c6763 Mon Sep 17 00:00:00 2001 From: Jason Wu Date: Sat, 21 Mar 2026 10:02:33 +0800 Subject: [PATCH] fix(health-monitor): recompute hourly budget post-drain, abort full check on stop, skip stale-run drain --- src/gateway/channel-health-monitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway/channel-health-monitor.ts b/src/gateway/channel-health-monitor.ts index a56dd8a8183..20eaf8c5dd6 100644 --- a/src/gateway/channel-health-monitor.ts +++ b/src/gateway/channel-health-monitor.ts @@ -247,7 +247,7 @@ export function startChannelHealthMonitor(deps: ChannelHealthMonitorDeps): Chann ); // If the monitor was stopped during the drain window, abort the restart. if (stopped) { - break; + return; } // Re-evaluate channel health after drain: the channel may have recovered // or reconnected while we were waiting. Only proceed if still unhealthy.