mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
With Add Artboard Guides previewing, deleting an artboard from the Artboards panel ran inside the preview's interaction. On the next frame the dialog could no longer find its artboard, canceled the preview, and the cancel put the deleted artboard back. The same happened in every add-on dialog: any command run while its preview showed was undone by the next preview or by Cancel. An add-on dialog's preview now marks its interaction (`dialog`). A command from outside the dialog sets that interaction aside, runs on the document without the preview as an undo step of its own, and the dialog previews again from the command's result and selection, as a tool drag already does. `edit.copy` and the `file.*` commands other than `file.documentColorMode` still act on the document as the preview shows it, and Edit Points Only keeps the old behavior, since it previews a selection. A preview whose snapshot an outside command changed runs again, also after a failed run. Docs: docs/mcp.md (undo/redo row).