mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-10-28 23:57:58 +09:00
addStep() appended through a functional setDraft but then selected with setStepIndex(draft.steps.length), reading the closed-over render snapshot. The two can disagree under fast interaction, selecting the wrong step or an index past the end of the list. Build the list and derive the index from the same snapshot so they cannot drift apart. Applied to the builtin-extensions source and the bundled copy together; sync-builtin-frontends --check keeps them identical. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>