diff options
| author | Brendan Allan <[email protected]> | 2026-01-13 13:58:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-13 13:58:00 +0800 |
| commit | f05f175842d57003692ea766b07857d6f4b05f2b (patch) | |
| tree | ed9d6ce0d89a1f7b615970183366e9d7031ae908 /packages/app/src/context/global-sync.tsx | |
| parent | c0b214232d8820f53c6a9f7fc1d38334012417db (diff) | |
| download | opencode-f05f175842d57003692ea766b07857d6f4b05f2b.tar.gz opencode-f05f175842d57003692ea766b07857d6f4b05f2b.zip | |
feat(desktop): spawn local server with password (#8139)
Diffstat (limited to 'packages/app/src/context/global-sync.tsx')
| -rw-r--r-- | packages/app/src/context/global-sync.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/app/src/context/global-sync.tsx b/packages/app/src/context/global-sync.tsx index a0656c5fc..ddac1f228 100644 --- a/packages/app/src/context/global-sync.tsx +++ b/packages/app/src/context/global-sync.tsx @@ -26,6 +26,7 @@ import { ErrorPage, type InitError } from "../pages/error" import { batch, createContext, useContext, onCleanup, onMount, type ParentProps, Switch, Match } from "solid-js" import { showToast } from "@opencode-ai/ui/toast" import { getFilename } from "@opencode-ai/util/path" +import { usePlatform } from "./platform" type State = { status: "loading" | "partial" | "complete" @@ -64,6 +65,7 @@ type State = { function createGlobalSync() { const globalSDK = useGlobalSDK() + const platform = usePlatform() const [globalStore, setGlobalStore] = createStore<{ ready: boolean error?: InitError @@ -139,6 +141,7 @@ function createGlobalSync() { const [store, setStore] = child(directory) const sdk = createOpencodeClient({ baseUrl: globalSDK.url, + fetch: platform.fetch, directory, throwOnError: true, }) @@ -396,6 +399,7 @@ function createGlobalSync() { case "lsp.updated": { const sdk = createOpencodeClient({ baseUrl: globalSDK.url, + fetch: platform.fetch, directory, throwOnError: true, }) |
