Skip to content

Commit 6bb9d58

Browse files
fix(web): keep the thread route waiting for environments that register late
The connection catalog can be ready before platform environments (the primary, desktop-local backends) register, so its absence cannot prove a route's environment is unreachable. Drop the route redirect; the thread link chip already stops linking into the blank route. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 9af4585 commit 6bb9d58

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎apps/web/src/components/ThreadRouteView.tsx‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
useQuietThreadShell,
1919
} from "../state/entities";
2020
import { appAtomRegistry } from "../rpc/atomRegistry";
21-
import { environmentCatalog } from "../connection/catalog";
2221
import { useEnvironmentShellStatus } from "../state/shell";
2322
import { environmentThreadShells, threadFamilies, useEnvironmentThread } from "../state/threads";
2423
import {
@@ -72,12 +71,6 @@ export function ThreadRouteView({
7271
const shellStatus = useEnvironmentShellStatus(serverThreadRef?.environmentId ?? null);
7372
const environmentThreadRefs = useEnvironmentThreadRefs(serverThreadRef?.environmentId ?? null);
7473
const bootstrapComplete = isThreadRouteSnapshotAuthoritative(shellStatus);
75-
// A thread on a machine this client has no connection to would wait on its shell forever.
76-
const catalog = useAtomValue(environmentCatalog.catalogValueAtom);
77-
const environmentUnknown =
78-
serverThreadRef !== null &&
79-
catalog.isReady &&
80-
!catalog.entries.has(serverThreadRef.environmentId);
8174
const draftThread = useComposerDraftStore((store) =>
8275
serverThreadRef ? store.getDraftThreadByRef(serverThreadRef) : null,
8376
);
@@ -215,7 +208,7 @@ export function ThreadRouteView({
215208
} else {
216209
redirect = <Navigate to="/" replace />;
217210
}
218-
} else if (hiddenByTagFilter || environmentUnknown) {
211+
} else if (hiddenByTagFilter) {
219212
redirect = <Navigate to="/" replace />;
220213
} else if (offShellBlocked) {
221214
// Before the shell bootstraps, a listed visible thread can still look off-shell.

0 commit comments

Comments
 (0)