mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 10:11:58 +01:00
Root cause: the options bar sent markerSize/labelSize as f32 JSON floats (8.0) and count.setGroup read them with as_u64, which is None for floats, so the command returned Ok and changed nothing. Fix: count.setGroup accepts whole numbers sent as floats (UIs, agents and actions send them), rejects fractions, negatives and non-numbers with BadParams, and clamps in u64/f64 so huge values no longer wrap through `as u32`. The options bar now sends integers. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>