fix(coding-agent): avoid racing browser probe output

This commit is contained in:
metaphorics
2026-08-05 11:19:38 +00:00
parent e1a7c17c2b
commit 30bbfd69e7
@@ -214,8 +214,7 @@ async function isChromiumExecutable(p: string): Promise<boolean> {
});
const stdout = await Promise.race([
new Response(proc.stdout).text(),
proc.exited.then(() => null),
Bun.sleep(probeTimeoutMs).then(() => null),
Bun.sleep(probeTimeoutMs + 500).then(() => null),
]);
if (stdout === null) return false;
await proc.exited;