Much to read and ponder about our long involvement in Afghanistan. I'm not sure any foreign power has successfully pacified Afghanistan; neither the Brits nor the Soviets managed it in the last 200 years.
One thing we must not do is be half-hearted about our involvement; that was the pre-surge Bush mistake in Iraq. As General Colin Powell was heard to observe, you either go in with overwhelming force and win, or don't go in at all. I cannot imagine our current President making that kind of major commitment. Anything in between wastes money and lives in a meat grinder stalemate.
As long as the Taliban and al Qaeda have a safe haven in the tribal areas of Pakistan, there is no way to defeat them. If by some chance Pakistan gets control of those areas, expect the bad guys to move somewhere else, maybe Iran or Somalia or Tajikistan or even Venezuela.
I can imagine the US chasing these trouble-makers all over the globe, more-or-less indefinitely. This is not a pleasant thought.