Skip to content

fix(cli): honor navigation timeout in diagnostics#2246

Open
miguel-heygen wants to merge 1 commit into
mainfrom
fix/diagnostic-navigation-timeout
Open

fix(cli): honor navigation timeout in diagnostics#2246
miguel-heygen wants to merge 1 commit into
mainfrom
fix/diagnostic-navigation-timeout

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Make snapshot, check/inspect layout audits, and motion-shot browser navigation honor PRODUCER_PAGE_NAVIGATION_TIMEOUT_MS.

Why

These diagnostic paths hardcoded Puppeteer page.goto to 10 seconds. On slow Windows Chrome launches, validate and render could be configured successfully while snapshot/check/inspect remained unusable.

How

Add one shared diagnostic navigation-timeout resolver with the existing render environment contract and replace the hardcoded navigation budgets across composition capture, layout audit, and motion-shot capture. Invalid or missing values preserve the 10-second default.

Test plan

  • bunx vitest run packages/cli/src/utils/renderArgs.test.ts -t resolveDiagnosticNavigationTimeoutMs
  • bun run --filter @hyperframes/cli typecheck
  • full monorepo build
  • pre-commit lint, format, tracked-artifact, fallow, and typecheck hooks

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.

1 participant