President Trump’s on-again-off-again approach to denuclearization talks came just days before a surprise summit between Seoul and Pyongyang that may pave the way for future negotiations.