mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
The MCP controller restarts its runtime when the profile id changes, and it compared ids by object identity. Leaving the workspace clears the transit uuid cache, and on the first visit it also saves the workspace-visited prop, which reloads the profile. The reloaded id came back as a new uuid instance, so MCP init ran again: it closed the plugin, dropped the WebSocket and left the new plugin disconnected. Compare profile ids by value, and add a regression test that sends the same id as two distinct uuid instances. Closes #13128 AI-assisted-by: claude-opus-5-5