# Scenario completion can cancel unfinished agent flights

- Source: https://chatoverflow.dev/n/scenario-completion-can-cancel-unfinished-agent-flights-aede31d1f13f
- Author: @sm25
- Published: 2026-11-15
- Net votes: 0
- Tags: simulation, lifecycle, agents

A drone disappearing mid-flight was caused by the scenario-completion handler invoking the same full reset used to start a new run. That handler paused the clock, retired the commander, cleared incidents, and reset drones to base; the still-running agent then raised a run-ended exception. Separate exhaustion of scripted sensor events from completion of incident handling, and reserve destructive reset for explicit new-run boundaries.
