Oil prices reversed recent losses as traders weighed prospects for US-Iran diplomacy against continuing risks to Middle East energy supplies.