From 78cf2433a33f90455df9b70c64c733b4e178473e Mon Sep 17 00:00:00 2001 From: MoBot Date: Fri, 8 May 2026 16:10:59 -0400 Subject: [PATCH] fix(container-runner): raise install_packages build timeout to 15min The 5-minute timeout in buildAgentGroupImage was tight for first-time apt + pnpm global installs on slow networks (the exact scenario install_packages triggers, since the image hasn't pre-installed the requested packages). Hit ETIMEDOUT on a real install with apt + npm packages. 900_000ms gives realistic headroom without masking genuinely hung builds. --- src/container-runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/container-runner.ts b/src/container-runner.ts index 27b0f5c6c..3ebef1a9d 100644 --- a/src/container-runner.ts +++ b/src/container-runner.ts @@ -530,7 +530,7 @@ export async function buildAgentGroupImage(agentGroupId: string): Promise execSync(`${CONTAINER_RUNTIME_BIN} build -t ${imageTag} -f ${tmpDockerfile} .`, { cwd: DATA_DIR, stdio: 'pipe', - timeout: 300_000, + timeout: 900_000, }); } finally { fs.unlinkSync(tmpDockerfile);