mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 08:39:34 +00:00
85d89b24b8
Review caught the recipe dialog having the same shape of bug as the form, one step earlier. addAutomation ran unconditionally on every attempt, so a trigger request that failed left an automation behind and pressing create again made a second one. With a recipe that binds more than one lifecycle, the cycles that had succeeded would then exist on both, and the show would fire them twice. The comment there claimed the half created automation was recoverable, which it was, but only by abandoning the dialog: the retry the error message offered was the thing that duplicated it. The dialog now records what it has already put on the server. A second attempt edits that automation rather than creating another, so parameters corrected after the failure are still applied, and adds only the triggers still missing. Verified by failing the first trigger request: the failed attempt leaves one automation with no trigger, and the retry reuses it and adds the trigger, rather than leaving two automations behind. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AfDKsy6PE3Rbyt32Fg4YKf