fix(web): degrade server status when the /health probe fails

`resolveServerStatus` only degraded on `healthOk === false`, so a /health
request that errored outright (network error, 5xx) left the console claiming
"online" off a cached /info. Add `healthError` as its own step, ahead of the
subsystem check, and feed `health.isError` from the shell, the status page and
the workspaces page so all three derive a single verdict.
This commit is contained in:
yuez committed 2026-10-27 18:07:04 +08:00
1 parent 5139adf915
commit f549045ed2
5 files changed
+50 -10

No files matched your search

+2 -1
View File
@@ -132,10 +132,11 @@ export function AppShell() {
paired,
info: info.data,
infoError: info.isError,
healthError: health.isError,
healthOk,
}),
);
}, [healthOk, info.data, info.isError, paired, setServerStatus]);
}, [health.isError, healthOk, info.data, info.isError, paired, setServerStatus]);
useEffect(() => {
document.body.dataset.page = page;