fix(web): recover the home screen when the bundle never runs

This commit is contained in:
jesse-ux
2026-09-22 12:13:17 +08:00
parent 6ac61be07d
commit 337d820076
18 changed files with 882 additions and 22 deletions
@@ -80,6 +80,12 @@ export function useHomeShellRegistration(params: HomeShellRegistrationParams) {
visibleSessions,
} = params;
useEffect(() => {
// The inline dead-screen script stands down only after the app has revealed.
if (!hydrated || typeof document === "undefined") return;
document.documentElement.dataset.hydrated = "1";
}, [hydrated]);
useEffect(() => {
if (!hydrated || !account) {
registerShellControls(null);