fn is_asked(
state: &AppState,
actor: &str,
def_id: &str,
blocks: &[Block],
to: &IdentityAccount,
label: &str,
when: AccountSwitchWhen,
) -> boolExpand description
Whether the agent is asked to prepare before this switch (server::prep): a switch already waiting on
its window is the window’s, a failover never asks (AgentMux acts because the account failed, and the
agent can seldom answer), and any other agent is asked when it has something to lose.