As Charlie confesses his love for his departed sibling, Sam tells Charlie that he loves him back and leaves as a shooting star to reveal Tess' location.
He loves him back. This is what Sam tells Charlie. He leaves as a shooting star. This is to reveal Tess' location. This is what Sam tells Charlie. Charlie confesses his love for his departed sibling.