async fn authorize(
cx: &ToolCtx<'_>,
action: &str,
w: &AgentMuxWindowInfo,
id: u32,
) -> Result<String>Expand description
Ask srv whether action on w may go ahead. Returns the grant’s id, or
srv’s reason as an error. It never waits for the user: with no grant srv
asks them and answers pending at once, and their answer reaches the agent
as an [AgentMux] note.