Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client-runtime): T3 Connect setup timeouts say which side lost its network #17630

Closedjosephv123(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/17630/headopened View on GitHub

Showing 9 changed files with 12 additions and 1 deletion (loading 6).

x
0 of 9 viewed, 9 left
1 addition and 0 deletionspackages/client-runtime/src/authorization/layer.test.tsModified
View file
@@ -193,6 +193,7 @@
registerLiveActivity: unexpected,
getAgentActivitySnapshot: unexpected,
resetTokenCache: Effect.void,
+ checkReachable: Effect.succeed(true),
});
const layer = RemoteEnvironmentAuthorization.layer.pipe(
Layer.provide(
10 additions and 1 deletionpackages/client-runtime/src/connection/driver.tsModified
View file
@@ -16,6 +16,7 @@
import * as ConnectionResolver from "./resolver.ts";
import { connectionRoutes, routeEntry, routeHttpBaseUrl } from "./routes.ts";
import * as RpcSession from "../rpc/session.ts";
+import * as ManagedRelay from "../relay/managedRelay.ts";
import { fetchRemoteEnvironmentDescriptor } from "../environment/descriptor.ts";
​
export type ConnectionDriverProgress =
@@ -62,6 +63,8 @@
entry: ConnectionCatalogEntry,
route: ConnectionRoute,
) => Effect.Effect<boolean>;
+ /** Whether this device can reach T3 Connect at all, regardless of any environment. */
+ readonly checkRelay: Effect.Effect<boolean>;
>()("@t3tools/client-runtime/connection/driver/ConnectionDriver") {}
​