OTA flashing an Arduino

I don't know how you can hang on a trapeze cut the wire you're hanging on and run a new wire all at the same time
I would look at having two ESPs
one downloads the program that you want to upload then it would reprogram the second one

Sounds like a waste of an extra processor but that way you would have one live programming the other one