These were all proxy wars, all despots using communism as a tool to further their intentions.
Islam is a faith, unless you win the ideological battle, the war will never end.
As Jerry Pournelle puts it: "Ideology counts. But it does its counting with a sword".
Military victory gives the ideological adherents the sense that they are on the correct side. Humiliating and complete defeat makes them question ideological infallibility
And the Islamic world is composed of despots using Islamism as a tool to further their intentions.
Perhaps the solution would be to surgically take out the despots and the mullahs they use to promote their Islamist ideology. Make it clear that promoting, financing, or preaching radical Islam puts you on the hit list