diff options
| author | Adam <[email protected]> | 2025-12-17 15:59:03 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-17 16:04:40 -0600 |
| commit | f9497553676f9ac96d3662ddb726512a9ab3eea4 (patch) | |
| tree | b8c96bee5a811bffe2e88a1269b223f23d0ce1d4 /packages/desktop/src/context | |
| parent | a168d854f46c68736aefcb321839684e71d240af (diff) | |
| download | opencode-f9497553676f9ac96d3662ddb726512a9ab3eea4.tar.gz opencode-f9497553676f9ac96d3662ddb726512a9ab3eea4.zip | |
fix: better init error messages
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 |
