fn restart_on_new_model(
state: &AppState,
agent: &AgentDefinition,
fresh_message: Option<String>,
)Expand description
The choice is read at every launch, so the agent’s panes are restarted, with their conversation, at the end of
the turn they are in. A pane that cannot be restarted starts on it the next time it opens. With fresh_message they
start a new session instead, its first message that one.