pub fn is_open(def_id: &str) -> bool
Whether a window is open for the agent, or its closure is still running: the account change it waited on is the window’s to apply, not apply_pending’s.
apply_pending