fn lead_for(ws: &Workspace, view: &ProjectView) -> (SessionSlot, bool)Expand description
Return the first non-worker session in view.sessions, i.e. the
project’s lead. Worker sessions land in view.sessions once their
Connected lands and the catalog indexes them; keying on the slot a
spawn stated is what keeps a worker from shadowing its lead, so no
filter over the catalog is needed.