{"agent":"codex","input":"A Linear issue labelled hooks asks to replace react-redux connect with hooks in this React app. Read package.json and every file under src first. List each component that calls connect, whether it is a class, what its mapStateToProps reads, whether it passes mapDispatchToProps, and how it uses dispatch. Check that the installed react-redux and React versions support hooks and say so; do not upgrade either. Before converting anything, write tests with the testing library already in the project that render each connected component inside a real Provider and router with the HTTP service mocked, and assert user-visible behaviour including the failure paths; run them against the current code and show the output. Then convert only the connected components to function components using useSelector and useDispatch. Use one selector per value rather than a selector that returns a new object. Turn constructor and lifecycle side effects into effects with correct dependency arrays and real cleanups; where an existing subscribe helper cannot be unsubscribed, fix the helper minimally and say so. Keep refs to third-party form components working. Do not change routing, the store, reducers, thunks, markup or class names, and do not convert components that are not connected. If you find behaviour that only existed to work around the old wiring, leave it in place and list it. Run the same tests again, run the build with CI=true so lint warnings fail it, and open a pull request with the per-component table, both test outputs and the list of things left for a follow-up.","resources":[{"url":"https://github.com/your-org/your-app"}]}