Fix for race condition where agent is requested before it is ready
Fix for race condition where agent is requested before it is ready

cuckoobox/cuckoo,cuckoobox/cuckoo,cuckoobox/cuckoo,cuckoobox/cuckoo,cuckoobox/cuckoo