async fn connect_and_run( token: &str, agents: Arc<Mutex<HashSet<String>>>, ctrl_rx: &mut UnboundedReceiver<CtrlMsg>, _wstore: &Arc<Store>, http: &Client, ) -> Result<(), String>