Skip to content

The agent that grows with you

fix(desktop): a registry-connection hover prewarms that connection's gateway (main #89756 port)

teknium1d785f9b429ff
diff --git a/apps/desktop/src/store/profile.ts b/apps/desktop/src/store/profile.ts
index 73963037c6b..e0ff92fa293 100644
--- a/apps/desktop/src/store/profile.ts
+++ b/apps/desktop/src/store/profile.ts
@@ -514,8 +514,10 @@ export function prewarmProfileBackend(name: string, connectionId: null | string
return
}
- prewarmedAt.set(key, now)
- openGatewayForProfile(key).catch(() => undefined)
+ prewarmedAt.set(scope, now)
+ // A registry connection prewarms its own gateway; only a local profile dials the primary.
+ const dial = connection ? openGatewayForAgent(connection, key) : openGatewayForProfile(key)
+ dial.catch(() => undefined)
}
let gatewaySwitch: Promise<void> | null = null