Skip to content

Fix editor presentation capture diagnostics and canvas selection - #2438

Merged
chubes4 merged 1 commit into
mainfrom
fix/2437-editor-presentation-json
Aug 31, 2026
Merged

Fix editor presentation capture diagnostics and canvas selection#2438
chubes4 merged 1 commit into
mainfrom
fix/2437-editor-presentation-json

Conversation

@chubes4

@chubes4 chubes4 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • initialize WordPress style and script registries before reading block editor settings from CLI
  • frame the internal presentation JSON payload so PHP diagnostics cannot corrupt transport
  • preserve bounded PHP output when framing is missing or invalid
  • select any visible non-iframed editor canvas instead of assuming the first match is visible

Closes #2437.

Verification

  • npx tsx --test tests/browser-routed-command-security.test.ts
  • npm run build
  • Replayed the 15-saas solved-site recipe through WordPress 7.0.4. wordpress.editor-open captured all six expected presentation identities with complete coverage.

AI assistance

OpenAI GPT-5.6 Sol via OpenCode reproduced the released-package failure, traced the WordPress and browser readiness boundaries, implemented the focused repair, and ran the verification under human direction.

@chubes4
chubes4 merged commit c69a176 into main Aug 31, 2026
5 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.

Editor presentation capture loses PHP diagnostics and corrupts JSON

1 participant