{"agent":"claude","input":"Add route-level prefetching with TanStack Router and TanStack Query. Read frontend/src/main.tsx, frontend/src/routes/__root.tsx, frontend/src/routes/_layout.tsx, frontend/src/routes/_layout/items.tsx, frontend/src/routes/_layout/admin.tsx, frontend/src/hooks/useAuth.ts, frontend/src/components/Sidebar/Main.tsx, frontend/src/components/Sidebar/AppSidebar.tsx, frontend/vite.config.ts, frontend/playwright.config.ts and frontend/tests/items.spec.ts first. Type the root route with createRootRouteWithContext carrying the QueryClient, pass it as router context from main.tsx, and set defaultPreload to intent with defaultPreloadStaleTime 0. Move the items, users and currentUser query options into queryOptions definitions in a shared module, add a loader to the Items and Admin routes that calls ensureQueryData, and make Admin's beforeLoad read the current user through the cache instead of calling the service again. Set a staleTime on these options and say why in the pull request. Add a Playwright spec that hovers the Items link, waits for the items request, clicks, and asserts the table shows without the pending skeleton. Run the Playwright suite against a local backend and database, biome check and tsc, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}