Ensure dashboard quit saves state and ignore artifacts

This commit is contained in:
Codex Agent
2025-11-22 18:12:17 +01:00
parent ba65f84cd4
commit 8d9b57f86d
3 changed files with 4 additions and 104 deletions

View File

@@ -94,6 +94,9 @@ class ReactorDashboard:
self._draw(stdscr, state)
self._handle_input(stdscr)
if self.quit_requested or self.reset_requested:
# Persist the latest state if we are exiting early.
if self.sim:
self.sim.last_state = state
self.sim.stop()
break
finally: