By January 2018, Disney had confirmed that the screenplay had been written by Stephany Folsom, who rewrote three quarters of Jones and McCormack's original script, according to Annie Potts. Folsom had collaborated on the screenplay with Stanton, who co-wrote the first two films. According to Cooley, the center of the film's updated screenplay was around the relationship of Woody and Bo Peep. Bo Peep had been absent in Toy Story 3, explained narratively as Bo Peep having been given away. This had set the stage for the conclusion of the third film, with Woody getting the idea to give Andy's toys to Bonnie. Cooley said that when they thought about bringing Bo Peep back in the fourth film, it was not only to rekindle the romantic interest between Woody and Bo Peep. Bo Peep's becoming a lost toy also reflects a fear Woody has had through the series, and challenges his world view. By September 28, 2018, recording for the film had begun. Allen said that the film's story was "so emotional" that he "couldn't even get through the last scene. " Similarly, Tom Hanks said that the film's ending scene was a "moment in history. " On January 30, 2019, Hanks and Allen finished recording their characters' voices.