fix(gateway): show connect vs RPC status

This commit is contained in:
Peter Steinberger
2026-01-11 03:54:58 +01:00
parent 054a6d301c
commit 11f897b7df
4 changed files with 17 additions and 3 deletions

View File

@@ -324,9 +324,18 @@ function renderProbeSummaryLine(probe: GatewayProbeResult, rich: boolean) {
typeof probe.connectLatencyMs === "number"
? `${probe.connectLatencyMs}ms`
: "unknown";
return `${colorize(rich, theme.success, "Connect: ok")} (${latency})`;
return `${colorize(rich, theme.success, "Connect: ok")} (${latency}) · ${colorize(rich, theme.success, "RPC: ok")}`;
}
const detail = probe.error ? ` - ${probe.error}` : "";
if (probe.connectLatencyMs != null) {
const latency =
typeof probe.connectLatencyMs === "number"
? `${probe.connectLatencyMs}ms`
: "unknown";
return `${colorize(rich, theme.success, "Connect: ok")} (${latency}) · ${colorize(rich, theme.error, "RPC: failed")}${detail}`;
}
return `${colorize(rich, theme.error, "Connect: failed")}${detail}`;
}