According to this radio programme[1] I was listening to at the weekend, scientists have been warning about the potential of coronaviruses to cause a pandemic for a long time, and saying we should work on general antivirals for them. Obviously that didn't happen.
[1] https://www.bbc.co.uk/programmes/m000gvd1