Hi shaochangbin, I believe the intended IPC does not do anything meaningful ATM, it is checking blocking script execution (smth like while(1) {}) which might not be the case. This brings however a lot of complexity and possibility of all kinds of raise conditions (and hence bugs).
So yes, I'd keep only "no open window case" here (if it is OK from UX point of view). @kenchris wdyt?