Skip to content

fix(check): retry system Chrome after managed launch crash - #3701

Merged
miga-heygen merged 1 commit into
mainfrom
magi/fix-check-windows-chrome-launch
Sep 8, 2026
Merged

fix(check): retry system Chrome after managed launch crash#3701
miga-heygen merged 1 commit into
mainfrom
magi/fix-check-windows-chrome-launch

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

check and the other shared screenshot diagnostics now recover when the managed Windows chrome-headless-shell exits with STATUS_STACK_BUFFER_OVERRUN. They retry once with an installed system Chrome, or return actionable HYPERFRAMES_BROWSER_PATH guidance when no fallback exists.

Why

HyperFrames already recognizes exit code 3221225595 and explains the system-Chrome workaround for render, but the shared page-open path closed and rethrew the raw launch error. A valid composition therefore failed before navigation even though Chrome was available on the host.

How

The screenshot page-open boundary reuses the existing Windows crash detector, retries only managed cache/download sources, and recomputes browser GPU policy for the fallback executable. System Chrome discovery now checks the standard machine-wide and per-user Windows install locations before where, so Chrome need not be on PATH. Explicit/system browser choices and unrelated launch failures retain their existing behavior.

Test plan

  • Unit tests added/updated

  • Manual testing performed

  • Documentation updated (not applicable)

  • Five browser-manager, page-open, crash-detector, and check suites: 96 tests passed

  • Changed-file oxlint, oxfmt, and diff checks passed

The Windows binary crash was injected on this Linux host rather than rerun on Windows. CLI-wide typecheck remains unavailable because optional AWS/GCP dependencies are absent and unrelated Studio/schema errors predate this change; it reported no changed-path error.

@miga-heygen miga-heygen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows STATUS_STACK_BUFFER_OVERRUN recovery with system Chrome fallback is well scoped — crash code matching, proper error enrichment, and all three paths (retry success, no system Chrome, unrelated error) tested. — Miga

@miga-heygen
miga-heygen enabled auto-merge (squash) September 8, 2026 18:09
@miga-heygen
miga-heygen merged commit c5b7f6a into main Sep 8, 2026
49 checks passed
@miga-heygen
miga-heygen deleted the magi/fix-check-windows-chrome-launch branch September 8, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants