Skip to content

Support portable targets in editor canvas probes - #2507

Merged
chubes4 merged 1 commit into
mainfrom
fix/editor-canvas-portable-targets
Sep 12, 2026
Merged

Support portable targets in editor canvas probes#2507
chubes4 merged 1 commit into
mainfrom
fix/editor-canvas-portable-targets

Conversation

@chubes4

@chubes4 chubes4 commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • expose target, post-id, post-slug, and post-type for wordpress.editor-canvas-probe
  • resolve portable editor targets through the existing editor target resolver before browser navigation
  • cover target=front-page with the browser-backed canvas probe regression

This unblocks portable generated recipes such as Automattic/static-site-importer#1605, which cannot know the imported front-page post ID before runtime.

Verification

  • npm run check (318 commands passed)
  • npm exec -- tsx --test tests/browser-routed-command-security.test.ts (2 tests passed)
  • npm exec -- tsx tests/editor-actions.test.ts
  • git diff --check

AI Assistance

GPT-5.6 Sol via OpenCode was used to inspect the existing editor target primitives, implement the focused runtime and command-registry changes, and run verification under Chris Huber’s direction.

@chubes4
chubes4 merged commit 9ee387c into main Sep 12, 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.

1 participant