{"agent":"claude","input":"Replace the Load more button on the comments list with infinite scroll. Read the infinite query options and hook for comments, the component that renders the list, the route loader that prefetches it, the mutations that invalidate its query key, the API mock handlers for comments, and the test setup file first. Install dependencies, create .env from .env.example, and record the results of the type check, lint and tests before changing anything. Keep the existing useInfiniteQuery and its query key. Render a sentinel element after the last item only while hasNextPage is true, observe it with IntersectionObserver using a rootMargin, call fetchNextPage only when it intersects and no next page is already being fetched, and disconnect in the effect cleanup. Keep the existing button inside the sentinel as the keyboard and no-observer path. Check getNextPageParam against what the API returns for an empty list and for a list that is an exact multiple of the page size, and fix it if either reports a next page that does not exist. Add an IntersectionObserver stub to the shared test setup next to the existing ResizeObserver stub. Add tests: a list longer than one page loads the second page when the sentinel intersects and then removes the sentinel; an empty list makes exactly one request. Do not add a scroll library or a virtualised list. Open a pull request with the type check, lint and test output from before and after.","resources":[{"url":"https://github.com/your-org/your-app"}]}