mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
`ui.set` skipped keys it doesn't read and replied with success, so the `dark` field advertised by the MCP `ui_set` tool (and any typo) changed nothing while reporting ok. It now checks every key against `UI_SET_FIELDS` before applying any of them and names the accepted fields in the error. The MCP tool description, its `fields` doc, the control.rs method list and docs/control-protocol.md list the real fields. An unknown theme listed only studio, studioLight and classic; the error now comes from `ThemeKind::ALL` through the new `ThemeKind::id`, so it names pro and proMedium too, and each listed name selects its theme. Co-authored-by: Claude Opus 5.5 <[email protected]>