During Ansom's life the two despised each other. They were ideological opposites. Stanley had respect for Ansom's command ability. Ansom had no kind of respect for Stanley.
After decryption they share an ideology (Stanley's). Stanley seems to genuinely like Ansom now and has great respect for his tactical mind. Ansom is devoted to Stanley, but finds him irritating and can't help, despite his feelings of loyalty, seeing a lot of evidence that suggests that Stanley is an incompetent strategist.