How can I implement the ability to interrupt and resume execution at any time

hi again @CxyZyr

is that sth helpful Stopping endpoint for deep agents - #2 by pawel-twardziak?

Have you managed to handle your original issue in this post?