If the rumors are correct, Barack Obama is refusing to simply double down in Afghanistan, instead demanding that timelines address concrete plans for withdrawal. This seems to signal that he's planning to get out of there sooner rather than later.
I don't know whether this is the correct decision, either strategically or morally. After running military operations in their country for eight years, I think we have an obligation to help the Afghanis build a functioning and relatively secure state, as long as such a thing is possible. But I don't know whether it is possible. I'll leave that commentary to the experts.
However, I do think that Barack Obama has to be congratulated on two things: courage, and a willingness to accept that there are sunk costs. Assuming that this war isn't winnable, the easiest thing politically would have been to send more troops into Afghanistan, some to be killed, some to kill innocent Afghan civilians. Just let the thing drag on at the edge of the national consciousness, and hope for a miracle, or leave a mess for your successor. It might have cost him in the future, as the death toll mounted, but the death toll in Afghanistan has been relatively low, and he needs political capital now, when he's trying to push through the most ambitious parts of his platform.