Skip to content

Route visual compares to the WordPress origin#2110

Merged
chubes4 merged 1 commit into
mainfrom
fix/2109-visual-compare-origin
Jul 26, 2026
Merged

Route visual compares to the WordPress origin#2110
chubes4 merged 1 commit into
mainfrom
fix/2109-visual-compare-origin

Conversation

@chubes4

@chubes4 chubes4 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • use the direct local WordPress Playground origin for internal visual comparison captures
  • retain the preview proxy for exposed/public preview modes
  • align visual comparison with the internal-origin boundary established for editor commands in Fix editor saves on internal Playground origin #2102

Closes #2109.

Verification

  • npm run build
  • npx tsx tests/browser-visual-compare-contract.test.ts
  • npx tsx tests/browser-callback-materialization-contracts.test.ts
  • real eight-route 27-university-department visual comparison

Before this change, proxy-port candidate routes failed with ERR_TOO_MANY_REDIRECTS. After the change, all eight source and candidate captures complete on the direct WordPress origin and produce full screenshots, DOM snapshots, and pixel metrics. The same run validates 269/269 Gutenberg blocks.

Compatibility

No command or artifact schema changes. Explicit public/routed preview modes still resolve through their requested origins; only the default local internal capture base changes when wordpressUrl is available.

AI assistance

  • Model: OpenAI GPT-5.6 Sol
  • Tool: OpenCode
  • Used for: cross-stack reproduction, implementation, tests, and university runtime verification with Chris Huber.

@chubes4
chubes4 merged commit 2563cae into main Jul 26, 2026
4 checks passed
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.

Route internal visual comparisons through the direct WordPress origin

1 participant