Commander Cody will finally return to the Star Wars canon continuity in Star Wars: The Bad Batch season 2, potentially explaining what happens to Captain Rex by the events of Star Wars Rebels. Commander Cody is one of the Star Wars franchise’s first named clone trooper characters, and in addition to playing a supporting role in Star Wars: Episode III – Revenge of the Sith, he also appears frequently in the seven-season run of Star Wars: The Clone Wars, which depicts his close friendship with General Obi-Wan Kenobi and Captain Rex. Cody’s appearances in the Bad Batch season 2 teaser reveal that he still serves the fledgling Galactic Empire, but this may change by the end of the season, setting Rex up for his retirement on Seelos by the time the crew of the Ghost finds him in Rebels.
Commander Cody appeared in Legends-era Star Wars material before making his live-action debut in Revenge of the Sith, which showcased the effects of clone Order 66 programming by having Cody attempt to kill Obi-Wan upon receiving the order, despite their years of friendship. In the canon continuity, Cody’s story after the rise of the Empire has been shrouded in mystery, with several properties nearly including him. Rebels nearly had the brainwashed clone officer tasked by Grand Admiral Thrawn with hunting down the Ghost crew when the latter deduced that there was a former Republic clone trooper among them. Cody was also considered for a supporting role in the Obi-Wan Kenobi series, where, after presumably overcoming his brainwashing, he’d assist his old Jedi friend during his time in hiding from the Empire.
Related: Why Disney Cut Commander Cody's Obi-Wan Kenobi Role
Captain Rex, due to his more prominent role in The Clone Wars and more robust
Read more on screenrant.com