pub async fn connect_to_srv(state: Arc<AppState>) -> Option<SrvIpcHandle>Expand description
If AGENTMUX_SRV_PIPE_PATH is set, connect, Register as Host,
spawn a read loop that forwards srv events to all top-level
renderers. Returns a handle to keep the connection alive.
Errors are logged but non-fatal: a srv-IPC failure should NOT
prevent the host from running. The renderer continues using the
legacy waveobj:update HTTP/WS path until the connection comes
back at the next host start.