pub(crate) async fn for_agent(
broker: &Broker,
name: Option<&str>,
) -> Result<AgentTarget, String>Expand description
The connection an agent’s Shell or PtyShell call asked for, checked the
same way a pane’s is (ensure), Err with the reason when it cannot run.