Skip to content

Fix Figma host message handling - #6

Merged
DavidBabinec merged 1 commit into
mainfrom
agent/fix-figma-host-messages
Aug 13, 2026
Merged

Fix Figma host message handling#6
DavidBabinec merged 1 commit into
mainfrom
agent/fix-figma-host-messages

Conversation

@DavidBabinec

Copy link
Copy Markdown
Contributor

What changed

  • accept wrapped Figma host messages without assuming event.source === parent
  • keep raw bundled-editor messages isolated through the existing iframe-source check
  • add regression coverage for null-source and non-parent-source host messages
  • run the Figma messaging test in CI

Root cause

Figma desktop can deliver pluginMessage events with a null or non-parent event.source. The 2.0 UI discarded those messages, so both successful imports and import errors left the connection card spinning forever.

Validation

  • bun run --filter './packages/figma' test
  • bun run build:figma
  • bun run release:figma -- 2.0.0
  • open-source boundary checks for source and packaged Figma output

@DavidBabinec
DavidBabinec merged commit befa62e into main Aug 13, 2026
6 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