The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(core): satisfy transcript delivery clippy gates
Steven Enamakelf630f8cdc540
diff --git a/src/openhuman/threads/transcript_view/project.rs b/src/openhuman/threads/transcript_view/project.rsindex c1c7cc5a5a..324f50d03f 100644--- a/src/openhuman/threads/transcript_view/project.rs+++ b/src/openhuman/threads/transcript_view/project.rs@@ -31,6 +31,9 @@ const DATETIME_PREFIX: &str = "Current Date & Time:";/// live injector currently only prepends [`DATETIME_PREFIX`].const CHANNEL_CONTEXT_PREFIX: &str = "[Channel context]";+type NativeToolCall = (String, String, String);+type NativeToolEnvelope = (String, Vec<NativeToolCall>);+/// Resolve a thread's root transcript, discover its sub-agent siblings, and/// project everything into display items. Returns `None` when the thread has/// no root transcript yet (brand-new thread / first turn not persisted).@@ -463,7 +466,7 @@ fn project_assistant(/// Decode the native provider replay envelope embedded in `ChatMessage.content`./// Returns visible assistant prose plus `(id, name, arguments)` calls.-fn parse_native_tool_envelope(raw: &str) -> Option<(String, Vec<(String, String, String)>)> {+fn parse_native_tool_envelope(raw: &str) -> Option<NativeToolEnvelope> {let value = serde_json::from_str::<serde_json::Value>(raw).ok()?;let object = value.as_object()?;let calls = object.get("tool_calls")?.as_array()?;diff --git a/src/openhuman/web_chat/presentation.rs b/src/openhuman/web_chat/presentation.rsindex 1263affe33..44e14076cb 100644--- a/src/openhuman/web_chat/presentation.rs+++ b/src/openhuman/web_chat/presentation.rs@@ -69,7 +69,7 @@ pub(crate) async fn deliver_response(// Keep the response byte-for-byte in one assistant message. The legacy// segmentation helpers remain available to channel-specific callers/tests,// but the interactive web surface must not cut or reformat model output.- let segments = vec![full_response.to_string()];+ let segments = [full_response.to_string()];// Await the reaction result (should already be done or nearly done).let reaction_emoji = reaction_handle.await.unwrap_or(None);