diff options
Diffstat (limited to 'packages/desktop/src/context')
| -rw-r--r-- | packages/desktop/src/context/global-sync.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/desktop/src/context/global-sync.tsx b/packages/desktop/src/context/global-sync.tsx index 15cdd48cd..9e716f4d9 100644 --- a/packages/desktop/src/context/global-sync.tsx +++ b/packages/desktop/src/context/global-sync.tsx @@ -15,13 +15,12 @@ import { type ProviderAuthResponse, type Command, createOpencodeClient, - EventSessionError, } from "@opencode-ai/sdk/v2/client" import { createStore, produce, reconcile } from "solid-js/store" import { Binary } from "@opencode-ai/util/binary" import { useGlobalSDK } from "./global-sdk" -import { ErrorPage } from "../pages/error" -import { createContext, useContext, onMount, type ParentProps, Switch, Match, createEffect } from "solid-js" +import { ErrorPage, type InitError } from "../pages/error" +import { createContext, useContext, onMount, type ParentProps, Switch, Match } from "solid-js" type State = { ready: boolean @@ -56,7 +55,7 @@ function createGlobalSync() { const globalSDK = useGlobalSDK() const [globalStore, setGlobalStore] = createStore<{ ready: boolean - error?: EventSessionError["properties"]["error"] + error?: InitError path: Path project: Project[] provider: ProviderListResponse |
