From 898456a25cf2edbfc4ae4961b37424f633419dd6 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Wed, 25 Mar 2026 06:23:25 -0500 Subject: Revert "fix(app): startup efficiency" --- packages/desktop/src/index.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'packages/desktop') diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx index 5fe88d501..e67795644 100644 --- a/packages/desktop/src/index.tsx +++ b/packages/desktop/src/index.tsx @@ -6,9 +6,6 @@ import { AppBaseProviders, AppInterface, handleNotificationClick, - loadLocaleDict, - normalizeLocale, - type Locale, type Platform, PlatformProvider, ServerConnection, @@ -417,17 +414,6 @@ void listenForDeepLinks() render(() => { const platform = createPlatform() - const loadLocale = async () => { - const current = await platform.storage?.("opencode.global.dat").getItem("language") - const legacy = current ? undefined : await platform.storage?.().getItem("language.v1") - const raw = current ?? legacy - if (!raw) return - const locale = raw.match(/"locale"\s*:\s*"([^"]+)"/)?.[1] - if (!locale) return - const next = normalizeLocale(locale) - if (next !== "en") await loadLocaleDict(next) - return next satisfies Locale - } // Fetch sidecar credentials from Rust (available immediately, before health check) const [sidecar] = createResource(() => commands.awaitInitialization(new Channel() as any)) @@ -437,7 +423,6 @@ render(() => { if (url) return ServerConnection.key({ type: "http", http: { url } }) }), ) - const [locale] = createResource(loadLocale) // Build the sidecar server connection once credentials arrive const servers = () => { @@ -480,8 +465,8 @@ render(() => { return ( - - + + {(_) => { return (