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
test(rpc): add dispatch context to socketio handshake test
Steven Enamakel8ac4727e47bf
diff --git a/crates/openhuman-rpc/src/server/socketio_tests.rs b/crates/openhuman-rpc/src/server/socketio_tests.rsindex 3178e80906..1179bef4f8 100644--- a/crates/openhuman-rpc/src/server/socketio_tests.rs+++ b/crates/openhuman-rpc/src/server/socketio_tests.rs@@ -312,7 +312,13 @@ async fn only_the_core_bearer_completes_the_socketio_handshake() {async fn handshake_bearer_gate() {let token = ensure_rpc_token();let (layer, _io) = super::attach_socketio();- let app = axum::Router::new().layer(layer);+ // The serving router stamps every request with its dispatch context; the+ // connect handler refuses a socket that arrives without one.+ let app = axum::Router::new()+ .layer(layer)+ .layer(axum::Extension(+ crate::core_host::core::runtime::DispatchCtx::host_default(),+ ));let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();let base = format!("http://{}", listener.local_addr().unwrap());tokio::spawn(async move { axum::serve(listener, app).await.unwrap() });