Stalin discouraged any alliance between the Communists and various other Marxist parties (Social Democrats etc) in late 20's/early 30's Germany. This lead to infighting among the Marxist groups and their ultimate failure to coalesce into a stronger party.
In fact, once Hitler gained power, Stalin was more than happy to let Hitler take care of Thaelmann and the other German Communists.