fix(web): resolve feature install status sync and mutual exclusivity (#214)

This commit is contained in:
SnapOtter
2026-06-13 13:44:37 +08:00
parent 4e14e00a4c
commit 492da820f8
4 changed files with 40 additions and 13 deletions
@@ -97,6 +97,12 @@ export function FeatureInstallPrompt({
installBundle(bundle.id);
}
// Defensive guard: if the bundle is already installed (status may have
// been refreshed after mount), never render the install prompt.
if (bundle.status === "installed") {
return null;
}
if (!isAdmin) {
return (
<div className="flex flex-col items-center justify-center h-full gap-4 text-center px-4">