Skip to content

Commit 1d2d710

Browse files
committed
fix: relax request timeouts
1 parent 2fd9737 commit 1d2d710

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

packages/app/src/context/global-sdk.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const { use: useGlobalSDK, provider: GlobalSDKProvider } = createSimpleCo
3131
const platform = usePlatform()
3232
const sdk = createOpencodeClient({
3333
baseUrl: server.url,
34-
signal: AbortSignal.timeout(1000 * 60 * 10),
3534
fetch: platform.fetch,
3635
throwOnError: true,
3736
})

packages/app/src/context/sdk.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const { use: useSDK, provider: SDKProvider } = createSimpleContext({
1111
const globalSDK = useGlobalSDK()
1212
const sdk = createOpencodeClient({
1313
baseUrl: globalSDK.url,
14-
signal: AbortSignal.timeout(1000 * 60 * 10),
1514
fetch: platform.fetch,
1615
directory: props.directory,
1716
throwOnError: true,

packages/app/src/context/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const { use: useServer, provider: ServerProvider } = createSimpleContext(
100100
const sdk = createOpencodeClient({
101101
baseUrl: url,
102102
fetch: platform.fetch,
103-
signal: AbortSignal.timeout(2000),
103+
signal: AbortSignal.timeout(3000),
104104
})
105105
return sdk.global
106106
.health()

0 commit comments

Comments
 (0)