mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Action playback treats Deselect with nothing selected as a silent no-op since #6744, as Photoshop does. photocraft-cli runs its --cmd list and batch steps one by one through command_run, so a Deselect after Reveal Selection (which drops the selection since #5251) stopped the whole run with "no selection" and wrote no output. run and batch now use the same check as playback (actions_cmds::noop_step, now public). run still prints a result line for the skipped step. A single Deselect outside a script stays disabled, as the #6744 test wants. Tests: deselect_noop_tests::run_skips_deselect_with_nothing_selected and batch_skips_deselect_with_nothing_selected (both fail on main).