The Doha agreement hands some power to the Taliban. So any US administration making or inheriting the agreement must have expected the Taliban to wield a certain amount of power in Afghanistan and eventually perhaps in Kabul
What's really caught almost everyone on the hop is that the Taliban has taken total control of Kabul so very soon. So many interviews of Afghans, journalists, NGOs... all completely taken by surprise by this happening right now, even if they knew there was a risk it would happen later.
Many people were in the process of making arrangements to leave (even though the Afghan government had asked the US not to conduct a mass exodus in case that itself precipitated the collapse of the Afghan administration), but thought they had more time.
Instead the Taliban are in control of Kabul even before the end of the extension from Trump's May 1 deadline to Biden's 31st Aug.
If the Taliban had taken over Kabul in two years' time – or even two months' time – there would be no mass evacuation because US troops wouldn't be there to secure the airport.
But this overlap has meant there's time to start a mass evacuation – but not to finish it.
All bloody awful.