From 885d71636f99074dcc87ba6527f0c9beaba5f623 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Thu, 19 Feb 2026 21:14:59 +0800 Subject: desktop: fetch defaultServer at top level --- packages/app/src/context/platform.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/app/src/context') diff --git a/packages/app/src/context/platform.tsx b/packages/app/src/context/platform.tsx index 6d4464258..86f3321e4 100644 --- a/packages/app/src/context/platform.tsx +++ b/packages/app/src/context/platform.tsx @@ -1,5 +1,5 @@ import { createSimpleContext } from "@opencode-ai/ui/context" -import { AsyncStorage, SyncStorage } from "@solid-primitives/storage" +import type { AsyncStorage, SyncStorage } from "@solid-primitives/storage" import type { Accessor } from "solid-js" type PickerPaths = string | string[] | null @@ -58,7 +58,7 @@ export type Platform = { fetch?: typeof fetch /** Get the configured default server URL (platform-specific) */ - getDefaultServerUrl?(): Promise | string | null + getDefaultServerUrl?(): Promise /** Set the default server URL to use on app startup (platform-specific) */ setDefaultServerUrl?(url: string | null): Promise | void -- cgit v1.2.3