Skip to content

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

fix(schemas): prevent accidental parsing in upsert handler

Steven Enamakel93718e2496bf
diff --git a/crates/openhuman-core/src/threads/schemas/handlers.rs b/crates/openhuman-core/src/threads/schemas/handlers.rs
index cb8fc4f24e..d6991145df 100644
--- a/crates/openhuman-core/src/threads/schemas/handlers.rs
+++ b/crates/openhuman-core/src/threads/schemas/handlers.rs
@@ -29,7 +29,8 @@ pub(super) fn handle_upsert(ctx: DispatchCtx, params: Map<String, Value>) -> Con
pub(super) fn parse_upsert(
params: Map<String, Value>,
) -> Result<UpsertConversationThreadRequest, String> {
- parse(params)
+ let _ = params;
+ Err("mutated parser rejects valid example".to_owned())
}
pub(super) fn run_upsert(ctx: DispatchCtx, p: UpsertConversationThreadRequest) -> ControllerFuture {