Suppose you ask ChatGPT to refactor and clean your code. it will immediately start refactoring, if it cut of in the middle, just type "continue" on chat and it will continue refactoring from where it left.