Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/desktop/src/app/contrib/wiring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export function ContribWiring({ children }: { children: ReactNode }) {
const requestGateway = useCallback(
<T,>(method: string, params?: Record<string, unknown>, timeoutMs?: number, signal?: AbortSignal) => {
const routingSessionId = $focusedStoredSessionId.get() ?? selectedStoredSessionIdRef.current

const owner =
(routingSessionId ? sessionTileOwnerRoute(routingSessionId) : undefined) ??
rememberedSessionProfile($sessions.get(), routingSessionId, $activeGatewayProfile.get())
Expand Down
2 changes: 2 additions & 0 deletions apps/desktop/src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down