diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.ts index cb2889f462..3bf5ab0079 100644 --- a/apps/desktop/src/sdk/index.ts +++ b/apps/desktop/src/sdk/index.ts @@ -571,11 +571,13 @@ export const host = { const profile = (options.profile ?? '').trim() const targetProfile = normalizeProfileKey(profile || $activeGatewayProfile.get()) const expectHistory = options.expectHistory ?? false + const plan = planPluginOpenSession({ activeProfile: $activeGatewayProfile.get(), keepAllProfilesScope: options.keepAllProfilesScope, profile }) + // Wake-path phase timings. Logged ONLY on a hydration timeout (bridged // into desktop.log via the renderer-console tap), so a support bundle // pinpoints WHERE the budget went — profile activation vs hydration — diff --git a/apps/desktop/src/sdk/profile-routing.test.ts b/apps/desktop/src/sdk/profile-routing.test.ts index 89360de0d1..56f28f6cc1 100644 --- a/apps/desktop/src/sdk/profile-routing.test.ts +++ b/apps/desktop/src/sdk/profile-routing.test.ts @@ -102,6 +102,7 @@ vi.mock('@/store/gateway', async () => { const { host } = await import('./index') const { openSession: openSessionCore } = await import('@/app/open-session') const { deleteProfile } = await import('@/hermes') + const { openGatewayForProfile, requestGatewayForAgent, requestGatewayForProfile, retireLocalProfileGateways } = await import('@/store/gateway') diff --git a/apps/desktop/src/store/session-request-router.test.ts b/apps/desktop/src/store/session-request-router.test.ts index 43335fe817..7aa4aa3f6a 100644 --- a/apps/desktop/src/store/session-request-router.test.ts +++ b/apps/desktop/src/store/session-request-router.test.ts @@ -178,6 +178,7 @@ describe('requestForSessionProfile', () => { method, params })) + const controller = new AbortController() await requestForSessionProfile(