Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(socket): reject connect params with a mutated parser

Steven Enamakelca318a91c01c
diff --git a/crates/openhuman-core/src/platform/socket/schemas.rs b/crates/openhuman-core/src/platform/socket/schemas.rs
index 85e47d9173..007f9980c2 100644
--- a/crates/openhuman-core/src/platform/socket/schemas.rs
+++ b/crates/openhuman-core/src/platform/socket/schemas.rs
@@ -225,7 +225,7 @@ fn connect_entry() -> ControllerEntry {
ControllerEntry::bound(BoundRegisteredController::after_gate(
schemas("connect"),
gate_manager,
- parse_connect,
+ |_params| Err::<ConnectParams, String>("mutated parser rejection".to_owned()),
run_connect,
))
}