sync ai state among client