Who actually decided

Was President Joe Biden in his right mind when he as Commander-in-Chief ordered the abadonment of equipment and people in Afghanistan? Or did someone else order it in his name?