Inconsistent state after canceling PHP download

Bug Summary

The configured PHP version for my site was not available. When I started the site, Local helpfully started downloading the required PHP version. While that was happening, I decided to cancel the download, because I intended to change to a newer PHP version. After canceling, the site is not started, but the UI indicates that it is. The Start/Stop site link in upper right reads “Stop site”, the “light” next to the site name is green, etc.

Steps to reproduce

With an older site that has an unavailable version of PHP, click “Start site”.
Observe that the PHP downloading screen appears.
Click cancel.
Dismiss the error dialog which just says “aborted”.
Observe that the UI is displaying the site as if it were started.

DownloadPHP

Environment Info

Describe your environment.

  • What Operating System are you using?

MacOS Monterey 12.6.3

  • What versions of site software (Nginx, Apache, PHP, MySQL) is used?

PHP Version 7.4 is configured, but not downloaded.

  • What version of Local is installed? 6.6.1+6281