fn ensure_controller(
state: &AppState,
agent: &AgentDefinition,
provider: &ProviderConfig,
block_id: &str,
tab_id: &str,
revive: bool,
) -> Result<(), String>Expand description
Register the block’s controller when it has none (a pane the frontend made, or a parked block
after a restart), resuming the agent’s session. With revive, a controller whose process has
ended is resynced too, which resumes it (a start, or an open with the setting on). tab_id is
empty for a parked block.