fix(engine): disable Corepack download prompt in verification spawns

Non-TTY children spawned by the verification runner hung until the hard
timeout when Corepack prompted before fetching a pinned packageManager
version. Set COREPACK_ENABLE_DOWNLOAD_PROMPT=0 in the spawn env so the
fetch proceeds (or fails fast) without waiting on stdin.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-09 15:29:05 -07:00
parent 1b7d5f5e5c
commit 4090076c4d
3 changed files with 19 additions and 2 deletions

View File

@@ -184,7 +184,13 @@ export async function runVerificationCommand(
const child = spawn(command, {
cwd,
stdio: ["ignore", "pipe", "pipe"],
env: { ...process.env },
env: {
...process.env,
// Corepack otherwise prompts interactively before fetching a pinned
// packageManager version, which hangs the non-TTY child until the
// hard timeout. Disable the prompt so it proceeds (or errors fast).
COREPACK_ENABLE_DOWNLOAD_PROMPT: "0",
},
shell: true,
});