diff --git a/src/renderer/src/components/editor/useEditorPanelFileLoadRetry.ts b/src/renderer/src/components/editor/useEditorPanelFileLoadRetry.ts index 78a9e2d9af0..3f4b52903bb 100644 --- a/src/renderer/src/components/editor/useEditorPanelFileLoadRetry.ts +++ b/src/renderer/src/components/editor/useEditorPanelFileLoadRetry.ts @@ -104,7 +104,9 @@ export function useEditorPanelFileLoadRetry({ const wslHostState = useAppStateValue((state) => wslEnvironmentId ? state.wslHostStatuses[wslEnvironmentId]?.state : undefined ) - const wslHost = wslHostRetryConnection(wslEnvironmentId, wslHostState) + // An SSH target keeps its own signal; only a workspace with none reads its WSL host. + const wslHost = + hostConnection.phase === 'local' ? wslHostRetryConnection(wslEnvironmentId, wslHostState) : null const hostTargetId = wslHost?.targetId ?? hostConnection.targetId const hostConnecting = wslHost?.connecting ?? hostConnection.phase === 'connecting' const connectedHostEpoch = wslHost ? wslHost.connectedEpoch : hostConnection.connectedEpoch diff --git a/src/renderer/src/components/wsl-host-stopped/WslHostStoppedNotice.tsx b/src/renderer/src/components/wsl-host-stopped/WslHostStoppedNotice.tsx index b8162d6bc53..e8aa3389b2b 100644 --- a/src/renderer/src/components/wsl-host-stopped/WslHostStoppedNotice.tsx +++ b/src/renderer/src/components/wsl-host-stopped/WslHostStoppedNotice.tsx @@ -1,6 +1,7 @@ import React, { useState } from 'react' import { Loader2 } from 'lucide-react' import { Button } from '@/components/ui/button' +import { LoadingSpinner } from '@/components/LoadingSpinner' import { LinuxPenguinIcon } from '@/components/icons/LinuxPenguinIcon' import { useMountedRef } from '@/hooks/useMountedRef' import { useTranslate } from '@/i18n/use-translate' @@ -55,7 +56,7 @@ export function WslHostStoppedNotice({ /> {connecting ? ( - + {t('components.native-chat.hostOutage.connecting', 'Connecting to {{distro}}…', { distro })}