But how does the Commander know that "the dude" with the hoodie was Palpatine or did he already know Darth Sidious?
Ele não precisava ...
Obedecer à Ordem 66 foi pré-programado em todos os clones dos quais Cody era um.
Control chips, also known as inhibitor chips, were a type of organic bio-chip capable of dictating or responding to the thoughts of its host. Kaminoan cloners implanted them within each clone trooper in the Grand Army of the Republic. It was implanted into the brain of every trooper at the third stage of their embryonic development. When they were activated the troopers responded to orders without question, allowing the Supreme Chancellor to initiate Order 66.
Então, o Chanceler ativou os chips e Cody não teve escolha mas obedecer.
As a result of the commander's programming, Cody obeyed the chancellor without hesitation .
Como detalhado em A resposta da Valorum a um similar pergunta sobre SF & F
The film's official novelisation indicates that the frequency was reserved for Palpatine.
“Yes, sir.” A silent buzzing vibration came from a compartment> concealed within his armor. Cody frowned. “Go on ahead, General. We’ll be right behind you.”
That concealed compartment held a secure comlink, which was frequency-locked to a channel reserved for the commander in chief.