From 0b2fa0e0f7d41a97ffabcfff2921ef3c1d45fdaa Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Fri, 13 Feb 2026 11:00:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20OpenCode=20SDK=E3=82=B5=E3=83=BC?= =?UTF-8?q?=E3=83=90=E3=83=BC=E8=B5=B7=E5=8B=95=E3=82=BF=E3=82=A4=E3=83=A0?= =?UTF-8?q?=E3=82=A2=E3=82=A6=E3=83=88=E3=82=9230=E7=A7=92=E3=81=AB?= =?UTF-8?q?=E5=BB=B6=E9=95=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/infra/opencode/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/infra/opencode/client.ts b/src/infra/opencode/client.ts index 0b04999..632ea9f 100644 --- a/src/infra/opencode/client.ts +++ b/src/infra/opencode/client.ts @@ -36,6 +36,7 @@ const OPENCODE_STREAM_ABORTED_MESSAGE = 'OpenCode execution aborted'; const OPENCODE_RETRY_MAX_ATTEMPTS = 3; const OPENCODE_RETRY_BASE_DELAY_MS = 250; const OPENCODE_INTERACTION_TIMEOUT_MS = 5000; +const OPENCODE_SERVER_START_TIMEOUT_MS = 30000; const OPENCODE_RETRYABLE_ERROR_PATTERNS = [ 'stream disconnected before completion', 'transport error', @@ -324,6 +325,7 @@ export class OpenCodeClient { port, signal: streamAbortController.signal, config, + timeout: OPENCODE_SERVER_START_TIMEOUT_MS, }); opencodeApiClient = client; serverClose = server.close;