fix: allow slower OpenCode server startup

The bundled OpenCode server could be reported unavailable when slower Linux ARM systems needed more than ten seconds to initialize. GoodBuddy now allows thirty seconds for startup before terminating the server and reports the updated timeout.

Release note: 修复部分 Linux ARM 设备上 OpenCode 冷启动较慢时被误报为启动超时的问题。
This commit is contained in:
mesalogo
2026-08-30 14:42:18 +08:00
parent 9f0f231e3b
commit acc5a8e2d8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ import {
} from './child-process-termination'
const MAX_STARTUP_OUTPUT_BYTES = 64 * 1024
const STARTUP_TIMEOUT_MS = 10_000
const STARTUP_TIMEOUT_MS = 30_000
const MAX_PERMISSION_NAME_LENGTH = 128
const MAX_PERMISSION_PATTERNS = 32
const MAX_PERMISSION_PATTERN_LENGTH = 1_024
@@ -1079,7 +1079,7 @@ export class OpenCodeRuntime implements AgentRuntime {
fail('OpenCode Server 启动已取消')
}
const timeout = setTimeout(() => {
fail('OpenCode Server 启动超时(10 秒)')
fail('OpenCode Server 启动超时(30 秒)')
}, this.dependencies.startupTimeoutMs)
if (!stdout || !stderr) {