Skip to content

The agent that grows with you

fix(desktop): key the failed-install Escape effect on a boolean, not the error string

chelsealong7e08c4524a84
diff --git a/apps/desktop/src/components/desktop-install-overlay.tsx b/apps/desktop/src/components/desktop-install-overlay.tsx
index 128f6cd05cb..0cc4d279faa 100644
--- a/apps/desktop/src/components/desktop-install-overlay.tsx
+++ b/apps/desktop/src/components/desktop-install-overlay.tsx
@@ -384,7 +384,8 @@ export function DesktopInstallOverlay({ enabled = true }: DesktopInstallOverlayP
window.addEventListener('keydown', onKeyDown)
return () => window.removeEventListener('keydown', onKeyDown)
- }, [state.error])
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- only the failed/not-failed transition matters, not error text changes
+ }, [Boolean(state.error)])
// The choice remains mounted while main hands off to local bootstrap. Once
// a manifest/failure takes ownership (or a later repair presents a fresh