From 24af586d506d9c1de6c670534839ce95e0f37fc4 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Wed, 15 Oct 2025 02:17:00 -0400 Subject: [PATCH] desktop: disable fetch timeout to prevent long-running operations from being cancelled --- packages/desktop/src/context/sdk.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/desktop/src/context/sdk.tsx b/packages/desktop/src/context/sdk.tsx index 48595cf9d..f0d51ef57 100644 --- a/packages/desktop/src/context/sdk.tsx +++ b/packages/desktop/src/context/sdk.tsx @@ -7,6 +7,13 @@ const port = import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096" function init() { const client = createOpencodeClient({ baseUrl: `http://${host}:${port}`, + fetch: (req) => { + return fetch({ + ...req, + // @ts-ignore + timeout: false, + }) + }, }) return client }