Could be relearning the idle setting
Same here with the battery except for unplugging the ECM This was the first time that I witnesed it. It appears sometimes it wants to act normal but most of the time now it does what I say above. Gonna reconnect computer look for any dirt and reconnect and see what happens.I have unplugged/ disconnected the battery many multiple times since having this car, and even unplugged the ECM as well, never had an issue after that.