{"agent":"claude","input":"Add cursor pagination to the items list in this FastAPI and SQLModel backend. Read backend/app/api/routes/items.py, backend/app/api/routes/users.py, backend/app/models.py, the Alembic versions under backend/app/alembic/versions/, backend/tests/api/routes/test_items.py, backend/scripts/test.sh, scripts/generate-client.sh and frontend/src/routes/_layout/items.tsx first. Keep skip and limit working. Add an optional cursor query parameter: when present, order by created_at descending with nulls last then id descending, filter with a keyset comparison on (created_at, id), fetch limit + 1 rows and return next_cursor in ItemsPublic, keeping count. Encode the cursor as opaque base64 and refuse a malformed one with 422. Handle rows whose created_at is null without skipping or repeating them. Add an Alembic revision with an index on (owner_id, created_at, id). Regenerate the frontend client with scripts/generate-client.sh. Add pytest tests that walk pages with limit=2 and check no overlap, the null created_at case, a bad cursor and the owner filter. Install PostgreSQL in the sandbox, run scripts/prestart.sh, backend/scripts/test.sh, ruff and mypy, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}