Yep, one of Ted's old roommates (or classmates) was right, everything he does is calculated. His truce and positive period was Trump was pure calculation and Ted followed in Trump's wake, then began to needle Trump and began to move away, then he became vicious and dishonest in how he characterized Trump, and what Trump would do as president.
I think Ted might discover in the coming years that his only path to the Oval Office was in Trump's wake, and he's probably blown it now.