{"agent":"claude","input":"In apps/react-vite, write tests for what the app shows when API calls fail. Read src/testing/setup-tests.ts, src/testing/mocks/, src/testing/test-utils.tsx, src/lib/api-client.ts, src/lib/react-query.ts, src/app/provider.tsx and the existing tests first. Override handlers per test with server.use, never by editing the shared handlers: a 500 with a message body, a 500 with no body, a network error, a 401 on /auth/me, and failures on mutations such as creating a discussion and updating the profile. Render the real routes with renderApp and assert what a user sees: the error notification text, forms that keep their input, and no success message. For the 401 case, replace window.location and assert the login URL with redirectTo. Follow the existing test style and folder layout. Do not change application code; list anything that looks wrong as a finding. Run yarn test --run, yarn lint and yarn check-types until they pass. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}