pub(super) fn pick_openable_agent( state: &AppState, agent_ref: &str, ) -> Result<AgentDefinition, String>
Step 1: the definition to open, by id or name, with its provider settled.