mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
desktop: disable fetch timeout to prevent long-running operations from being cancelled
This commit is contained in:
parent
3b6c75fba4
commit
24af586d50
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue