@devries-cameron20 / t3code-1 / commits / c77f755090
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): sidebar drops a deleted project's filter with the local environment disabled (#28179)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

NotAnNvidiaFan committed Oct 31, 2026 at 21:46 UTC c77f755090d0d4706022d0b1ba3ea13c59f454f2
2 files changed +4 -2
apps/web/src/localEnvironment.ts
+3 -1
@@ -1,3 +1,5 @@
1 export function isLocalEnvironmentDisabled(): boolean {
2 - return window.desktopBridge?.getLocalEnvironmentEnabled() === false;
2 + return (
3 + typeof window !== "undefined" && window.desktopBridge?.getLocalEnvironmentEnabled() === false
4 + );
5 }
apps/web/src/state/shell.ts
+1 -1
@@ -124,7 +124,7 @@ export const allEnvironmentProjectSnapshotsReadyAtom =
124 createAllEnvironmentProjectSnapshotsReadyAtom({
125 catalogValueAtom: environmentCatalog.catalogValueAtom,
126 shellStateValueAtom: environmentShell.stateValueAtom,
127 - requiresPrimaryEnvironment: !isHostedStaticApp(),
127 + requiresPrimaryEnvironment: expectsPrimaryEnvironment(),
128 });
129
130 /** Hosted clients and desktops with the local environment disabled never discover a primary. */