diff --git a/packages/app/src/components/dialog-local-server.tsx b/packages/app/src/components/dialog-local-server.tsx index f27437466a..9c8c9b0a65 100644 --- a/packages/app/src/components/dialog-local-server.tsx +++ b/packages/app/src/components/dialog-local-server.tsx @@ -4,7 +4,7 @@ import { showToast } from "@opencode-ai/ui/toast" import { createEffect, createMemo, For, Match, on, onCleanup, Show, Switch } from "solid-js" import { createStore, reconcile, unwrap } from "solid-js/store" import { useLanguage } from "@/context/language" -import type { LocalServerConfig, LocalServerState, LocalServerStep } from "@/context/platform" +import type { LocalServerConfig, LocalServerMode, LocalServerState, LocalServerStep } from "@/context/platform" import { usePlatform } from "@/context/platform" const WSL_STEPS: LocalServerStep[] = ["wsl", "distro", "opencode", "switch"] @@ -105,6 +105,10 @@ export function DialogLocalServer(props: { targetMode?: "windows" | "wsl" }) { } return { mode: "windows" as const, distro: null as string | null } }) + const configuredRuntimeLabel = createMemo(() => runtimeLabel(configuredRuntime().mode, configuredRuntime().distro)) + const currentRuntimeLabel = createMemo(() => + runtimeLabel(current()?.runtime.mode ?? "windows", current()?.runtime.distro ?? null), + ) const needsRestart = createMemo(() => { const state = current() if (!state) return false @@ -533,22 +537,20 @@ export function DialogLocalServer(props: { targetMode?: "windows" | "wsl" }) {