Skip to main content

restart_panes_of

Function restart_panes_of 

Source
pub(crate) fn restart_panes_of(
    state: &AppState,
    def_id: &str,
) -> (u32, u32, Vec<String>)
Expand description

Restarts every open pane of the agent with its conversation resumed. A persistent pane in a turn is restarted when the turn ends. A one-shot (subprocess) pane, a container agent’s, is not restarted: a restart would end the turn it is in, and its next turn reads the agent’s choice anyway; nor is a stopped agent, which would be started by it. Those are counted apart. Returns how many were restarted, how many pick the change up at their next turn, and why the others were not restarted.