Some improvisation and a change in character design lead directly to the emotional goodbye scene from Project Hail Mary.