desktop: disable fetch timeout to prevent long-running operations from being cancelled

This commit is contained in:
Dax Raad 2025-10-15 02:17:00 -04:00
parent 3b6c75fba4
commit 24af586d50

View file

@ -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
}