From 1943c1b7508ce57a8beb6fa9e29eba0a5ed855df Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 25 Jun 2026 23:51:10 -0500 Subject: [PATCH] fix(desktop): dedup profile in HMR adoptBoot --- apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts index ac0fb1a17b15..09efb2568753 100644 --- a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts +++ b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts @@ -547,8 +547,9 @@ export function useGatewayBoot({ publish(survivor.connection) } - $activeGatewayProfile.set(survivor?.profile ?? $activeGatewayProfile.get()) - void ensureGatewayForProfile(survivor?.profile ?? $activeGatewayProfile.get()) + const profile = survivor?.profile ?? $activeGatewayProfile.get() + $activeGatewayProfile.set(profile) + void ensureGatewayForProfile(profile) // Mirror the current (already-open) socket state into the composer so the // input doesn't sit disabled after the swap.