Strain the pineapple into a saucepan. Add the sugar, flour, egg, apple cider vinegar. Cook over medium heat until thick. Refrigerate at least overnight.
1 hour (or so) before serving: fold the cool whip into the sauce. add the apples, crushed pineapple, peanuts.