After 2500 loc in a single file I *had* to refactor. Cursor stopped being able to apply, and I had to do the same as you. Asked it to just tell me where to put code and I’d paste it in. 
Then, refactoring was a pain in the ass, but Sonnet-3.7-thinking got it done