Skip to main content

record_running_at_exit

Function record_running_at_exit 

Source
pub(crate) async fn record_running_at_exit(state: &AppState, ids: &[String])
Expand description

At app exit, before the agents are closed: keep which parked agents (no pane; a window brings its own panes back) have a running process, by definition id. The next start resumes these whatever their last turn was: an agent the idle sweep keeps running (it holds a claimed task) must not be dropped by a restart for having been quiet. Replaces the last list; none removes it.