Canceling pending installation fails
Issue
Start an installation with the network turned off.
The installation is stuck in "pending" state, and clicking the cancel button fails with an error "cannot remove com.example.AppId, it is not installed".
(It also remains in "pending" state after turning the network back on, but that's a separate issue)
System info
Freshly updated GNOME OS VM, with the flathub remote.