diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsx index c146b87ffb9b..a8ac55290141 100644 --- a/apps/desktop/src/app/contrib/wiring.tsx +++ b/apps/desktop/src/app/contrib/wiring.tsx @@ -310,6 +310,7 @@ export function ContribWiring({ children }: { children: ReactNode }) { const requestGateway = useCallback( (method: string, params?: Record, timeoutMs?: number, signal?: AbortSignal) => { const routingSessionId = $focusedStoredSessionId.get() ?? selectedStoredSessionIdRef.current + const owner = (routingSessionId ? sessionTileOwnerRoute(routingSessionId) : undefined) ?? rememberedSessionProfile($sessions.get(), routingSessionId, $activeGatewayProfile.get()) diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.ts index 7c8ec204e230..befb2bf46a8a 100644 --- a/apps/desktop/src/sdk/index.ts +++ b/apps/desktop/src/sdk/index.ts @@ -735,11 +735,13 @@ export const host = { // local open dials exactly as before (openGatewayForProfile), never the // registry-secondary path. const localConnectionId = activeGatewayConnectionId() + const ownerRoute = explicitRoute ?? (options.workspaceMode === 'bots' && profile && localConnectionId ? { connectionId: localConnectionId, mode: 'local' as const, profile: targetProfile } : null) + const expectHistory = options.expectHistory ?? false if (options.workspaceMode === 'bots') {