When the dog that caught the bus can figure out what to do with it after the chase is over! In other words, Obama doesn't have a damn clue and neither do those around him!
This isn’t going to be the most challenging situation that he’s going to face. All he really has to do is call the CNO into the Oval Office and say, “Admiral, handle it. I want that captain back alive and the pirates made an example of”. Then the pros take over, and Obama comes out of it smelling like a rose.
He won’t do that. As you’ve pointed out, he doesn’t have any idea of what to do. He’s probably trying to micromanage it from the White House, which is going to end up being a great big bucket of fail.