The US and Iran are working toward extending a ceasefire and restarting negotiations about a longer-term peace deal, even as a standoff intensifies over the Strait of Hormuz.