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(voice): persist user text turns and clarify live prompt time
Steven Enamakel93bffea0276a
diff --git a/crates/openhuman-core/src/agent/tinyagents/live_harness.rs b/crates/openhuman-core/src/agent/tinyagents/live_harness.rsindex 0e354e81a0..6e2c93b026 100644--- a/crates/openhuman-core/src/agent/tinyagents/live_harness.rs+++ b/crates/openhuman-core/src/agent/tinyagents/live_harness.rs@@ -67,7 +67,7 @@ pub(crate) fn assemble_live_tool_harness(harness.with_policy(run_policy_for(LIVE_MAX_TOOL_CALLS, false));let mut capability_registry: CapabilityRegistry<()> = CapabilityRegistry::new();- let (tool_count, _names, diagnostics, _snapshot) = register_turn_tools_and_agents(+ let (tool_count, names, diagnostics, _snapshot) = register_turn_tools_and_agents(&mut harness,&mut capability_registry,&tool_sets,@@ -86,7 +86,7 @@ pub(crate) fn assemble_live_tool_harness(diagnostic.message);}- tracing::debug!(tool_count, "[voice-live] assembled live tool harness");+ tracing::debug!(tool_count, tools = ?names, "[voice-live] assembled live tool harness");harness.push_middleware(Arc::new(TaToolPolicyMiddleware::new(harness.tools().policies()).require_sandbox(true),diff --git a/crates/openhuman-core/src/voice/live/session.rs b/crates/openhuman-core/src/voice/live/session.rsindex ec96f2cd60..04662deb8d 100644--- a/crates/openhuman-core/src/voice/live/session.rs+++ b/crates/openhuman-core/src/voice/live/session.rs@@ -71,8 +71,8 @@ pub(crate) fn resolve_provider(pub(crate) fn system_prompt(recent: &[ConversationMessage]) -> String {let mut prompt = BASE_PROMPT.trim().to_string();prompt.push_str(&format!(- "\n\nCurrent date and time: {}.",- chrono::Local::now().format("%A, %B %-d, %Y, %H:%M (%Z)")+ "\n\nThe user's local date and time now: {}.",+ chrono::Local::now().format("%A, %B %-d, %Y, %-I:%M %p")));let start = recent.len().saturating_sub(CONTEXT_MESSAGES);let lines: Vec<String> = recent[start..]diff --git a/crates/openhuman-core/src/voice/live/ws.rs b/crates/openhuman-core/src/voice/live/ws.rsindex cd9cba7aaa..d4e2bf9bb2 100644--- a/crates/openhuman-core/src/voice/live/ws.rs+++ b/crates/openhuman-core/src/voice/live/ws.rs@@ -230,7 +230,10 @@ pub async fn handle_live_voice_ws(socket: WebSocket, config: Arc<Config>) {let result = match message {Message::Binary(pcm) => sender.send_audio(pcm).await,Message::Text(text) => match serde_json::from_str::<ClientFrame>(&text) {- Ok(ClientFrame::Text { text }) => sender.send_text(text).await,+ Ok(ClientFrame::Text { text }) => {+ persister.save(TranscriptRole::User, &text).await;+ sender.send_text(text).await+ }Ok(ClientFrame::Interrupt) => sender.interrupt().await,Ok(ClientFrame::Stop) => {let _ = sender.close().await;