pub fn assert_active(active: &Arc<AtomicBool>) -> boolExpand description
Staleness guard: true while the owning session is still active. Called
before dispatching an extension event or driving an extension tool so a
stale registry (from a swapped-out session) can’t act. Mirrors pi’s
ExtensionRuntimeState active check.