[chewing] implement auto commit on inactivate.