tui: disable request timeout to prevent long-running operations from being interrupted
Some checks are pending
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run
test / test (push) Waiting to run

This commit is contained in:
Dax Raad 2025-10-15 04:38:11 -04:00
parent 27e3ba1801
commit 4e84429745

View file

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