The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(socket): document why emit_with_ack does not gate on Connected\n\nClarify the intentional asymmetry surfaced in review: emit_with_ack keeps its\nqueue-then-confirm behaviour while Connecting because the ack (or its timeout)\nconfirms delivery, so it cannot report the false success a bare emit could.\n
shanu89b432cf0194
diff --git a/src/openhuman/platform/socket/manager.rs b/src/openhuman/platform/socket/manager.rsindex fc9864876c..e5d103d548 100644--- a/src/openhuman/platform/socket/manager.rs+++ b/src/openhuman/platform/socket/manager.rs@@ -320,6 +320,14 @@ impl SocketManager {}/// Emit a Socket.IO event and wait for the backend ACK callback.+ ///+ /// Unlike [`emit`](Self::emit), this deliberately does **not** gate on+ /// `Connected`: a message queued while `Connecting` is flushed once the+ /// handshake completes, and if the handshake fails instead the ack simply+ /// never arrives and this returns a timeout `Err`. Because delivery is+ /// confirmed by the ack (or its absence), a pre-handshake `emit_with_ack`+ /// cannot report a false success the way a bare `emit` could (#6084), so it+ /// keeps the queue-then-confirm behaviour rather than rejecting early.pub async fn emit_with_ack(&self,event: &str,