mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
b21385ec4a
Progress is kept in memory while a show runs and written once, as a complete report, when the operator finishes the run. The stored history therefore never contains a partial run. - Nothing writes on the cue path. triggerReportEntry only updates memory, so the sidecar is untouched between the first event and finish. - Removes the write coalescing added for the previous model: with a single write per run there is nothing to debounce, so the timer, the dirty flag, the flush export and the shutdown hook all go, and app.ts returns to its previous state. - ShowRun.endedAt is no longer nullable. A stored run is finished by definition, so recovery of runs left open by a crash is gone along with the concept, and the run list drops its ongoing state. - Adds GET /report/runs/open for the editor indicator. /runs now means finished reports only, which is also the contract Cloud sees. - A run whose rundown was deleted before it finished now reports the events that actually ran as its planned count, rather than zero. Known gap: RestorePoint carries playback state only, so a crash mid show loses the in progress report. The stored history is unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019nr3FbLbM8gB8Jm771YgTV