async fn record_when_connected(
store: Arc<Store>,
session: String,
agent_id: String,
agent_name: String,
)Expand description
Records the connect under the agent that started it once its account is committed, whether or not the agent asks again; the task ends with the flow (success, failure, cancel or timeout).