diff options
| author | Adam <[email protected]> | 2026-03-24 18:36:37 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-03-24 18:36:37 -0500 |
| commit | a379eb38673aad097e1f178307865ec40a5ac3ea (patch) | |
| tree | 5df060e30638eefb2d95f1d8c1abbd6066922df8 /packages/desktop/src | |
| parent | cbe1337f2401066cf33eb9009b597eafb49123ba (diff) | |
| download | opencode-a379eb38673aad097e1f178307865ec40a5ac3ea.tar.gz opencode-a379eb38673aad097e1f178307865ec40a5ac3ea.zip | |
Revert "fix(app): startup efficiency (#18854)"
This reverts commit 546748a461539ca63e188ee07ab2b143c5ac2c83.
Diffstat (limited to 'packages/desktop/src')
| -rw-r--r-- | packages/desktop/src/index.tsx | 19 |
1 files changed, 2 insertions, 17 deletions
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<InitStep>() 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 ( <PlatformProvider value={platform}> - <AppBaseProviders locale={locale.latest}> - <Show when={!defaultServer.loading && !sidecar.loading && !locale.loading}> + <AppBaseProviders> + <Show when={!defaultServer.loading && !sidecar.loading}> {(_) => { return ( <AppInterface |
