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

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

fix(web): the Usage page sends a signed-out browser to pairing (#17938)

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

AdEx-Partners-DE committed Oct 11, 2026 at 06:52 UTC b4542c5418e727db5c5b578e3dc2b39e915fd0bc
1 file changed +9 -1
apps/web/src/routes/usage.tsx
+9 -1
@@ -1,7 +1,15 @@
1 -import { createFileRoute } from "@tanstack/react-router";
1 +import { createFileRoute, redirect } from "@tanstack/react-router";
2
3 import { UsagePage } from "../components/usage/UsagePage";
4
5 export const Route = createFileRoute("/usage")({
6 + beforeLoad: async ({ context }) => {
7 + if (
8 + context.authGateState.status !== "authenticated" &&
9 + context.authGateState.status !== "hosted-static"
10 + ) {
11 + throw redirect({ to: "/pair", replace: true });
12 + }
13 + },
14 component: UsagePage,
15 });