This is what ChatGPT does to me whenever I ask anything non-trivial. I find it funny people think it'll take over our jobs, it simply can't even do the most basic things beyond the beaten path.
are you using GPT-4? because it's been incredibly helpful to me. major refactoring gets done in a matter of seconds, and when it doesn't work, I can just paste whatever compiler error I'm getting and it usually fixes the problem
Can you give an example of what you consider “major refactoring”?