Clearly, the technical solution to that is to remove the command over US armed forces from the US president, and hand it over to something more sensible - more capable of setting and executing military strategy. Like Skynet.