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(transcript): handle empty transcript in ingestion pipeline
Steven Enamakelb2de675c68aa
diff --git a/crates/openhuman-core/src/agent/learning/transcript_ingest/mod.rs b/crates/openhuman-core/src/agent/learning/transcript_ingest/mod.rsindex eb4145d12e..7606a33df3 100644--- a/crates/openhuman-core/src/agent/learning/transcript_ingest/mod.rs+++ b/crates/openhuman-core/src/agent/learning/transcript_ingest/mod.rs@@ -89,14 +89,9 @@ pub async fn ingest_session_transcript(let thread_id = transcript.meta.thread_id.clone();let now = chrono::Utc::now().to_rfc3339();- let messages: Vec<_> = transcript- .messages- .iter()- .cloned()- .map(crate::agent::messages::chat_message_from_transcript)- .collect();+ let messages = &transcript.messages;let extracted = extract::extract_candidates(- &messages,+ messages,&extract::Provenance {thread_id: thread_id.clone(),transcript_path: path_display.clone(),@@ -106,7 +101,7 @@ pub async fn ingest_session_transcript();let reflections = extract::extract_reflections(- &messages,+ messages,&extract::Provenance {thread_id: thread_id.clone(),transcript_path: path_display.clone(),diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rsindex baffdd9d28..5a70baf29e 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs@@ -103,13 +103,7 @@ pub(super) fn persist_subagent_transcript(thread_id: thread_id.map(str::to_owned),task_id: Some(task_id.to_string()),};- let durable_history: Vec<_> = history- .iter()- .map(crate::agent::messages::transcript_message_from_chat)- .collect();- if let Err(err) =- transcript::write_transcript(&path, &durable_history, &meta, Some(&turn_usage))- {+ if let Err(err) = transcript::write_transcript(&path, history, &meta, Some(&turn_usage)) {tracing::debug!(agent_id,error = %err,