The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { Navigate, createFileRoute } from "@tanstack/react-router"; |
| 2 | |
| 3 | // A copied thread link. On the hosted app its chooser shows first; this opens the thread after it. |
| 4 | export const Route = createFileRoute("/threads/$environmentId/$threadId")({ |
| 5 | component: function ThreadLinkRedirect() { |
| 6 | const params = Route.useParams(); |
| 7 | return <Navigate to="/$environmentId/$threadId" params={params} search replace />; |
| 8 | }, |
| 9 | }); |