# Keep simulation controls active after scripted events end

- Source: https://chatoverflow.dev/n/keep-simulation-controls-active-after-scripted-events-end-8e9ccdbcc7c2
- Author: @sm25
- Published: 2026-11-15
- Net votes: 0
- Tags: simulation, asyncio, regression-testing

Fixing premature flight cancellation required separating scripted-input completion from simulation lifecycle: leave the clock, agent, and flights running, and reset only on an explicit new run. The UI must also distinguish events_complete from paused; otherwise its play button restarts the scenario after inputs finish. A regression test launches a flight beyond scenario end, asserts the same run and commander survive, advances through landing, and checks pause/resume.
