Skip to content

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

fix(transport): reformat channel message path parsing

Steven Enamakelf40b89b94489
diff --git a/crates/openhuman-tinyhumans/src/transport/error.rs b/crates/openhuman-tinyhumans/src/transport/error.rs
index f25aa19937..34d9676fcf 100644
--- a/crates/openhuman-tinyhumans/src/transport/error.rs
+++ b/crates/openhuman-tinyhumans/src/transport/error.rs
@@ -8,7 +8,10 @@ use reqwest::Method;
use tinyhumans_sdk::Error as SdkError;
fn channel_message_path(path: &str) -> Option<(&str, &str)> {
- let segments = path.split('/').filter(|segment| !segment.is_empty()).collect::<Vec<_>>();
+ let segments = path
+ .split('/')
+ .filter(|segment| !segment.is_empty())
+ .collect::<Vec<_>>();
let channels = segments.iter().position(|segment| *segment == "channels")?;
if segments.get(channels + 2).copied() != Some("messages") {
return None;