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:
1 parent
5139adf915
commit
f549045ed2
5 files changed
+50
-10
No files matched your search
@@ -91,7 +91,13 @@ export function StatusPage() {
|
||||
wsState,
|
||||
fetchedAt: info.dataUpdatedAt || null,
|
||||
nameFallback: storedServer?.name || meta?.server?.name,
|
||||
status: resolveServerStatus({ paired, info: info.data, infoError: info.isError, healthOk }),
|
||||
status: resolveServerStatus({
|
||||
paired,
|
||||
info: info.data,
|
||||
infoError: info.isError,
|
||||
healthError: health.isError,
|
||||
healthOk,
|
||||
}),
|
||||
});
|
||||
|
||||
// Background tasks: the live store covers open sessions, the REST session
|
||||
|
||||
Reference in new issue
Block a user