Skip to content

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

fix(threads): handle missing thread schema gracefully

Steven Enamakel46a69dc62d2f
diff --git a/crates/openhuman-core/src/threads/schemas/handlers.rs b/crates/openhuman-core/src/threads/schemas/handlers.rs
index 1c1e58a23f..3b49cacfd4 100644
--- a/crates/openhuman-core/src/threads/schemas/handlers.rs
+++ b/crates/openhuman-core/src/threads/schemas/handlers.rs
@@ -222,7 +222,7 @@ pub(super) fn handle_transcript_get(params: Map<String, Value>) -> ControllerFut
// ── Helpers ──────────────────────────────────────────────────────────
-fn parse<T: DeserializeOwned>(params: Map<String, Value>) -> Result<T, String> {
+pub(super) fn parse<T: DeserializeOwned>(params: Map<String, Value>) -> Result<T, String> {
serde_json::from_value(Value::Object(params)).map_err(|e| format!("invalid params: {e}"))
}