Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server,web,mobile): a host that drops because it froze now says why #22213

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/22213/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 22 changed files with 103 additions and 8 deletions (loading 19).

x
0 of 22 viewed, 22 left
12 additions and 1 deletionapps/mobile/src/features/connection/ConnectionEnvironmentRow.tsxModified
View file
@@ -1,7 +1,7 @@
import * as Dialog from "../../components/ui/Dialog";
import { ConnectionTraceId } from "./ConnectionTraceId";
import { SymbolView } from "../../components/ui/AppSymbol";
-import { hasSavedBearerRoute } from "@t3tools/client-runtime/connection";
+import { hasSavedBearerRoute, hostFreezeNotice } from "@t3tools/client-runtime/connection";
import type { AtomCommandResult } from "@t3tools/client-runtime/state/runtime";
import { type EnvironmentId, resolveEnvironmentMachineKind } from "@t3tools/contracts";
import { useAtomValue } from "@effect/atom-react";
@@ -67,6 +67,9 @@
const statusLabel = connectionStatusLabel(props.environment);
const statusTraceId = enabled ? props.environment.connectionErrorTraceId : null;
const hasConnectionFailure = enabled && props.environment.connectionError !== null;
+ const freeze = enabled
+ ? hostFreezeNotice(props.environment.environmentLabel, serverConfig?.lastEventLoopStall)
+ : null;
const isRetrying =
enabled &&
(props.environment.connectionState === "connecting" ||
@@ -151,6 +154,14 @@
) : null}
</Text>
) : null}
+ {freeze ? (
+ <Text
+ className="text-xs text-warning-foreground"
+ numberOfLines={props.expanded ? undefined : 1}
+ >
+ {`${freeze.title}. ${freeze.description}`}