The best way to control Claude Code, Codex and more from any computer or phone
fix(web): offer recovery from missing pages (#11314)
shivam committed
Sep 13, 2026 at 21:25 UTC
4a39cade982926f607b4606d0f8d92a807f4b0bf
1 file changed
+17
apps/web/src/routes/__root.tsx
+17
@@ -3,6 +3,7 @@ import { scopedProjectKey, scopeProjectRef } from "@t3tools/client-runtime/envir
3
import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
4
import {
5
Outlet,
6
+ Link,
7
redirect,
8
createRootRoute,
9
type ErrorComponentProps,
@@ -104,11 +105,27 @@ export const Route = createRootRoute({
105
},
106
component: RootRouteView,
107
errorComponent: RootRouteErrorView,
108
+ notFoundComponent: RootRouteNotFoundView,
109
head: () => ({
110
meta: [{ name: "title", content: APP_DISPLAY_NAME }],
111
}),
112
});
113
114
+function RootRouteNotFoundView() {
115
+ return (
116
+ <main className="flex min-h-0 min-w-0 flex-1 items-center justify-center p-6">
117
+ <div className="flex max-w-sm flex-col items-center gap-4 text-center">
118
+ <h1 className="text-lg font-medium text-foreground">Page not found</h1>
119
+ <p className="text-sm text-muted-foreground">
120
+ This link doesn't point to a page in {APP_DISPLAY_NAME}. Go home to choose a project or
121
+ start a thread.
122
+ </p>
123
+ <Button render={<Link to="/" replace />}>Go home</Button>
124
+ </div>
125
+ </main>
126
+ );
127
+}
128
+
129
function RootRouteView() {
130
useEffect(() => installDesktopPasteAsText(window.desktopBridge, window), []);
131
const pathname = useLocation({ select: (location) => location.pathname });