Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chrome-start-timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudhal/cli": patch
---

`cloudhal render` and the MCP `render_page` tool give a local Chrome 30 seconds to start instead of 10. A cold start on a busy machine or CI runner could exceed 10 seconds and fail with "Chrome did not start".
3 changes: 2 additions & 1 deletion packages/cli/src/render-chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export function chromeRenderer(
);
const endpoint = new Promise<string>((resolve, reject) => {
let err = "";
const timer = setTimeout(() => reject(new Error("Chrome did not start")), 10_000);
// A cold start on a busy CI runner can take well over 10 s; a warm one is under a second.
const timer = setTimeout(() => reject(new Error("Chrome did not start")), 30_000);
child.stderr?.on("data", (chunk: Buffer) => {
err += chunk.toString();
const m = /DevTools listening on (ws:\/\/\S+)/.exec(err);
Expand Down
Loading