mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: disable request timeout to prevent long-running operations from being interrupted
This commit is contained in:
parent
27e3ba1801
commit
4e84429745
1 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,11 @@ export const { use: useSDK, provider: SDKProvider } = createSimpleContext({
|
|||
init: (props: { url: string }) => {
|
||||
const client = createOpencodeClient({
|
||||
baseUrl: props.url,
|
||||
fetch: (req) => {
|
||||
// @ts-ignore
|
||||
req.timeout = false
|
||||
return fetch(req)
|
||||
},
|
||||
})
|
||||
return client
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue