Skip to content

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

refactor(web_chat): simplify channel_web_chat_with_attachments response

Steven Enamakelef9acace7615
diff --git a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs
index 48ddf4d8da..f0cd44bdf0 100644
--- a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs
+++ b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs
@@ -307,12 +307,12 @@ pub async fn channel_web_chat_with_attachments(
}
let accepted = serde_json::to_value(crate::threads::rpc_models::StartedChatAck {
- accepted: true,
- client_id: client_id.trim().to_owned(),
- thread_id: thread_id.trim().to_owned(),
- request_id: result,
- })
- .map_err(|error| format!("serialize started chat ack: {error}"))?;
+ accepted: true,
+ client_id: client_id.trim().to_owned(),
+ thread_id: thread_id.trim().to_owned(),
+ request_id: result,
+ })
+ .map_err(|error| format!("serialize started chat ack: {error}"))?;
Ok(Outcome::single_log(
accepted,
"web channel request accepted",