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
+1 -1
View File
@@ -997,7 +997,7 @@ describe('OpenCodeRuntime embedded launcher', () => {
expect(status).toMatchObject({
available: false,
detail: 'OpenCode Server 启动超时(10 秒)'
detail: 'OpenCode Server 启动超时(30 秒)'
})
expect(status.detail).not.toContain(secret)
expect(child.kill).toHaveBeenCalledWith('SIGTERM')