mirror of
https://github.com/penpot/penpot.git
synced 2026-11-05 11:43:25 -05:00
* 🐛 Fix ChatGPT tool discovery with the submit_feedback tool ChatGPT compiles the regex patterns advertised in tool input schemas with Python, which rejects Unicode property escapes such as \P{Cc}. The submit_feedback subject pattern used one, so ChatGPT dropped the whole tool list ("action discovery failed") on deployments that register the tool. The subject pattern now spells out the Cc range as a character class, which accepts the same input. A test asserts that no advertised pattern uses \p{...} or \P{...}. AI-assisted-by: claude-opus-5-5 * 🐛 Fix MCP plugin test stub for the version check plugin.ts checks version compatibility with extractMinorVersion, but the tests loaded it with a require stub that returned the same dummy object for every import, so the check threw once the UI initialized. The plugin.ts tests now share a stub that supplies the real VersionCompatibility, ErrorUtils and TaskHandler modules, stubs only the code execution handler and rejects unexpected imports. TaskHandler is transpiled for the sandbox because Node's type stripping cannot load its parameter properties. AI-assisted-by: claude-opus-5-5 * 🐛 Fix Management tests for backend-confirmed setters Management setters save to the backend first and update the object only when the save succeeds, so seven live tests failed: - setter tests now wait for the new value before reading it - createProject checks fileCount by listing the project again, as fileCount is the count from when the project was listed - project moveTo no longer calls remove on the target team, which teams do not have; the live CI driver deletes temporary teams - renaming the open file waits for its restore, which made the next navigation test fail The README notes on setters, fileCount and team cleanup match this. AI-assisted-by: claude-opus-5-5