Fix stalled apps causing repeated installation and update issues
Description
Add a database-clearing mechanism on app startup to resolve issues when the app is stuck on installing.
Screenshots
N/A
Technical details
There were a few race conditions that caused some app installations to remain stuck in the “installing” state stored in the database. This state was not automatically cleared unless the system sent a status update. If the system had already sent the update and App Lounge missed it, the app would effectively become soft-bricked. The underlying race conditions have already been fixed, and this change resolves the remaining behavior.
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/3927