Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client-runtime): incompatible hosts no longer switch environments off for good #15052

Mergedvitalyiegorov(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/15052/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 11 additions and 4 deletions (loading 6).

x
0 of 9 viewed, 9 left
6 additions and 2 deletionsapps/mobile/src/features/threads/NewTaskRouteScreen.tsxModified
View file
@@ -70,11 +70,15 @@
if (
(catalogState.connectionState === "available" ||
catalogState.connectionState === "offline" ||
- catalogState.connectionState === "error") &&
+ catalogState.connectionState === "error" ||
+ catalogState.connectionState === "unsupported") &&
!catalogState.hasLoadedShellSnapshot
) {
return {
- title: "Environment unavailable",
+ title:
+ catalogState.connectionState === "unsupported"
+ ? "Client not supported"
+ : "Environment unavailable",
detail:
catalogState.connectionError ??
"The saved environment is offline. Check the URL or start the environment, then retry.",
1 addition and 1 deletionapps/web/src/components/settings/ConnectionsSettings.tsxModified
View file
@@ -2075,7 +2075,7 @@
const loadBalancingEnvironments = [
...(primaryEnvironment ? [primaryEnvironment] : []),
...savedEnvironments.filter((environment) => environment.entry.enabled),
- ];
+ ].filter((environment) => environment.connection.phase !== "unsupported");
const savedDesktopSshEnvironmentKeys = (() => {
const keys = new Set<string>();