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
feat(memory): attribute a channel message to its sender
M3gA-Mindd50ffe8e9e46
diff --git a/crates/openhuman-core/src/agent/attachments/mod_access_tests.rs b/crates/openhuman-core/src/agent/attachments/mod_access_tests.rsindex 306d8d327a..04006f34b9 100644--- a/crates/openhuman-core/src/agent/attachments/mod_access_tests.rs+++ b/crates/openhuman-core/src/agent/attachments/mod_access_tests.rs@@ -4,6 +4,7 @@ const UPLOAD: &str = "caption [FILE:data:text/plain;name=note.txt;base64,YQ==]";fn external_origin() -> crate::agent::turn_origin::AgentTurnOrigin {crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "test".into(),sender: None,reply_target: "test".into(),diff --git a/crates/openhuman-core/src/agent/attachments/provider_tests.rs b/crates/openhuman-core/src/agent/attachments/provider_tests.rsindex eafdf0b8c5..aeeecceb91 100644--- a/crates/openhuman-core/src/agent/attachments/provider_tests.rs+++ b/crates/openhuman-core/src/agent/attachments/provider_tests.rs@@ -161,6 +161,7 @@ async fn external_channel_cannot_rehydrate_a_local_image() {},)]);let origin = AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "telegram".into(),sender: None,reply_target: "chat".into(),diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rsindex 2d8e4e6309..2abecc05f8 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs@@ -114,6 +114,9 @@ impl OpenHumanTurnPrelude {in_prompt_from,at: Utc::now(),resumed_after_compaction: compacted && committed_turns > 0,+ observed_actor: crate::agent::turn_origin::current()+ .as_ref()+ .and_then(crate::memory::lifecycle::sender::channel_actor),},).await;diff --git a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rsindex c30b6a56fb..668b3cfd50 100644--- a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs@@ -32,6 +32,7 @@ async fn bound_turn(tmp: &tempfile::TempDir) -> Arc<MemoryTurn> {in_prompt_from: 0,at: Utc::now(),resumed_after_compaction: false,+ observed_actor: None,},).await;diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context_tests.rsindex 421527d1d4..bb84b548ca 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context_tests.rs@@ -7,6 +7,7 @@ async fn attachment_scope_is_request_local_and_contains_only_typed_authority() {let mut data = crate::agent::tinyagents::host::OpenHumanRunContext::new();data.origin = Some(crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "test".into(),sender: None,reply_target: "room".into(),diff --git a/crates/openhuman-core/src/agent/tinyagents/tools_canonical_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tools_canonical_tests.rsindex 2533510d7b..5bd3b670b7 100644--- a/crates/openhuman-core/src/agent/tinyagents/tools_canonical_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tools_canonical_tests.rs@@ -194,6 +194,7 @@ async fn canonical_adapter_scopes_tool_execution_to_the_run_origin() {let mut host = crate::agent::tinyagents::host::OpenHumanRunContext::new();host.origin = Some(crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "test".into(),sender: None,reply_target: "room".into(),diff --git a/crates/openhuman-core/src/agent/triage/evaluator/arm.rs b/crates/openhuman-core/src/agent/triage/evaluator/arm.rsindex 3d67988858..a8b1e65b86 100644--- a/crates/openhuman-core/src/agent/triage/evaluator/arm.rs+++ b/crates/openhuman-core/src/agent/triage/evaluator/arm.rs@@ -135,6 +135,7 @@ pub(super) async fn try_arm(// (the triage agent doesn't usually invoke such tools — it// classifies and routes — but label correctly for defense in depth).origin: crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: envelope.source.slug().to_string(),// Triage runs over an upstream envelope (composio / webhook /// cron / external caller) that doesn't carry a per-user senderdiff --git a/crates/openhuman-core/src/agent/turn_origin.rs b/crates/openhuman-core/src/agent/turn_origin.rsindex db590ccfc2..a8f37459ae 100644--- a/crates/openhuman-core/src/agent/turn_origin.rs+++ b/crates/openhuman-core/src/agent/turn_origin.rs@@ -50,6 +50,10 @@ pub enum AgentTurnOrigin {ExternalChannel {channel: String,sender: Option<String>,+ /// The sender's display name as the channel gives it (a WhatsApp+ /// push or profile name, a Telegram first and last name), when it+ /// gives one. Never a saved contact name: no channel exposes one.+ sender_name: Option<String>,reply_target: String,message_id: String,/// The channel runtime's conversation-history key for this chat, set only bydiff --git a/crates/openhuman-core/src/agent/turn_origin_tests.rs b/crates/openhuman-core/src/agent/turn_origin_tests.rsindex 708bbcbc64..8f0e15ef9a 100644--- a/crates/openhuman-core/src/agent/turn_origin_tests.rs+++ b/crates/openhuman-core/src/agent/turn_origin_tests.rs@@ -64,6 +64,7 @@ async fn inherited_origin_stays_unlabelled_without_an_outer_scope() {async fn inherited_origin_preserves_a_non_cli_origin_verbatim() {let observed = with_origin(AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "telegram".into(),sender: Some("u-42".into()),reply_target: "chat-7".into(),@@ -259,6 +260,7 @@ async fn spawn_does_not_manufacture_an_origin() {async fn spawn_preserves_an_untrusted_origin_verbatim() {let observed = with_origin(AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "telegram".into(),sender: Some("u-42".into()),reply_target: "chat-7".into(),diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex e5aacadd50..b3b8424f59 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -340,6 +340,7 @@ pub(crate) async fn process_channel_runtime_message(// produce distinct origins, and the wallet preparer / parked-approval// gates compare these for equality before honouring confirmations.let turn_origin = crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: msg.sender_name.clone(),channel: msg.channel.clone(),sender: Some(msg.sender.clone()),reply_target: msg.reply_target.clone(),diff --git a/crates/openhuman-core/src/core/runtime/context_turn_origin_tests.rs b/crates/openhuman-core/src/core/runtime/context_turn_origin_tests.rsindex 13d389e4eb..f1ef4beb83 100644--- a/crates/openhuman-core/src/core/runtime/context_turn_origin_tests.rs+++ b/crates/openhuman-core/src/core/runtime/context_turn_origin_tests.rs@@ -4,6 +4,7 @@ use super::*;async fn dispatch_scope_uses_explicit_origin_without_mutating_shared_context() {let ctx = ctx("/tmp/origin-scope");let origin = crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "test".into(),sender: Some("sender".into()),reply_target: "room".into(),@@ -25,6 +26,7 @@ async fn dispatch_scope_uses_explicit_origin_without_mutating_shared_context() {async fn missing_child_origin_inherits_bound_external_authority() {let ctx = ctx("/tmp/origin-inheritance");let external = crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "test".into(),sender: None,reply_target: "room".into(),@@ -51,6 +53,7 @@ async fn explicit_origin_scope_bridges_legacy_and_core_context_without_cross_tallet run = |workspace: &'static str, channel: &'static str| async move {let context = ctx(workspace);let origin = AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: channel.into(),sender: Some(format!("{channel}-sender")),reply_target: format!("{channel}-room"),diff --git a/crates/openhuman-core/src/cron/origin.rs b/crates/openhuman-core/src/cron/origin.rsindex 6fbd3281ea..2b208b5c83 100644--- a/crates/openhuman-core/src/cron/origin.rs+++ b/crates/openhuman-core/src/cron/origin.rs@@ -73,6 +73,7 @@ pub(crate) fn turn_origin_for_job_run(job: &CronJob, run_id: &str) -> AgentTurnOsender,..}) => AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: channel.clone(),sender: sender.clone(),reply_target: reply_target.clone(),diff --git a/crates/openhuman-core/src/cron/origin_tests.rs b/crates/openhuman-core/src/cron/origin_tests.rsindex f79b059370..8e5bae9ad2 100644--- a/crates/openhuman-core/src/cron/origin_tests.rs+++ b/crates/openhuman-core/src/cron/origin_tests.rs@@ -5,6 +5,7 @@ use serde_json::json;fn channel_turn(history_key: Option<&str>) -> AgentTurnOrigin {AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "telegram".into(),sender: Some("alice".into()),reply_target: "42".into(),@@ -110,6 +111,7 @@ fn channel_origin_job_runs_as_external_channel_turn() {}));match turn_origin_for_job_run(&job, "run-1") {AgentTurnOrigin::ExternalChannel {+ sender_name: _,channel,sender,reply_target,diff --git a/crates/openhuman-core/src/mcp/server/tools/dispatch.rs b/crates/openhuman-core/src/mcp/server/tools/dispatch.rsindex eaa7992aa5..f04611c11a 100644--- a/crates/openhuman-core/src/mcp/server/tools/dispatch.rs+++ b/crates/openhuman-core/src/mcp/server/tools/dispatch.rs@@ -355,6 +355,7 @@ async fn run_subagent_tool(params: &Map<String, Value>) -> Result<Value, ToolCal// remote-controlled and any external_effect tool the agent tries to// run must route through the gate's audit + TTL-deny path.let origin = crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "mcp_server".to_string(),// MCP server callers don't carry a per-user identity at this// layer — the calling MCP client is the addressing primitive.diff --git a/crates/openhuman-core/src/memory/backfill_tests.rs b/crates/openhuman-core/src/memory/backfill_tests.rsindex eda3952fb0..e7640cafd4 100644--- a/crates/openhuman-core/src/memory/backfill_tests.rs+++ b/crates/openhuman-core/src/memory/backfill_tests.rs@@ -168,6 +168,7 @@ async fn stores_past_chats_once_and_skips_what_live_logging_took() {in_prompt_from: 0,at: Utc::now(),resumed_after_compaction: false,+ observed_actor: None,},).await;diff --git a/crates/openhuman-core/src/memory/lifecycle/hooks.rs b/crates/openhuman-core/src/memory/lifecycle/hooks.rsindex affafe1d73..9b43203e3c 100644--- a/crates/openhuman-core/src/memory/lifecycle/hooks.rs+++ b/crates/openhuman-core/src/memory/lifecycle/hooks.rs@@ -170,6 +170,11 @@ pub struct PreTurnInput {/// The session resumes a thread whose earlier turns were compacted out/// of the prompt: the pack opens with what the thread holds.pub resumed_after_compaction: bool,+ /// Who sent the message, when it is someone other than the memory's+ /// owner: a channel's sender ([`super::sender::channel_actor`]). Logged+ /// as the turn's observed actor, which the engine sends only with+ /// `[memory] observed_actor` on.+ pub observed_actor: Option<tinymemory_api::ObservedActor>,}/// Logs the user turn and recalls the pack it is given, within@@ -242,6 +247,7 @@ pub async fn pre_turn(let mut pre = PreTurn::new(&input.thread_id, input.turn_index, &input.user_text);pre.in_prompt_from = input.in_prompt_from;pre.at = Some(input.at);+ pre.observed_actor = input.observed_actor.clone();let context = match date_hint {Some(hint) => memory.pre_turn_dated(pre, resumed, hint).await,None if resumed => memory.pre_turn_resumed(pre).await,diff --git a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rsindex 1ec426b72b..ccabfdbbb1 100644--- a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs@@ -15,6 +15,7 @@ fn input(thread: &str, index: u32, text: &str) -> PreTurnInput {in_prompt_from: 0,at: Utc::now(),resumed_after_compaction: false,+ observed_actor: None,}}diff --git a/crates/openhuman-core/src/memory/lifecycle/mod.rs b/crates/openhuman-core/src/memory/lifecycle/mod.rsindex 9caee01fe3..8859ad00e2 100644--- a/crates/openhuman-core/src/memory/lifecycle/mod.rs+++ b/crates/openhuman-core/src/memory/lifecycle/mod.rs@@ -18,6 +18,7 @@pub mod date_hint;pub mod hooks;pub mod jobs;+pub mod sender;pub mod views;use std::sync::Arc;diff --git a/crates/openhuman-core/src/memory/lifecycle/sender.rs b/crates/openhuman-core/src/memory/lifecycle/sender.rsnew file mode 100644index 0000000000..f38c37050f--- /dev/null+++ b/crates/openhuman-core/src/memory/lifecycle/sender.rs@@ -0,0 +1,106 @@+//! Who sent a channel message, as the memory actor the user turn is+//! observed from.+//!+//! A message that arrived on a channel (WhatsApp, Telegram, SMS, …) was+//! written by its sender, not by the memory's owner. The channel runtime puts+//! the sender on the turn's origin ([`AgentTurnOrigin::ExternalChannel`]);+//! [`channel_actor`] turns it into an [`ObservedActor`]:+//!+//! | Sender | Actor id |+//! | --- | --- |+//! | a phone number, on a phone-addressed channel | `user:+15551234567` (dial digits) |+//! | an email address | `user:[email protected]` (lower-cased) |+//! | anything else (a Telegram or Discord id, a WhatsApp `<lid>@lid`, a Signal UUID) | `<channel>:<sender>` |+//!+//! with the sender's display name as the channel gives it (a push or profile+//! name; no channel exposes a saved contact name). Phone numbers and email+//! addresses are kept in plain text. In a group chat the sender is the+//! participant who wrote the message, not the group.+//!+//! Only a channel that addresses people by phone reads a digit string as a+//! phone number: a Telegram user id or a Discord snowflake is digits too.++use tinymemory_api::ObservedActor;++use crate::agent::turn_origin::AgentTurnOrigin;++/// Channels whose senders are phone numbers (or, for iMessage, email+/// addresses).+const PHONE_CHANNELS: &[&str] = &["whatsapp", "signal", "imessage", "linq", "sms"];++/// The actor a channel turn is observed from, or `None` for any other+/// origin, a channel turn without a sender, or a cron run (which replays its+/// creator's channel origin around the job's own prompt, `cron/origin.rs`).+#[must_use]+pub fn channel_actor(origin: &AgentTurnOrigin) -> Option<ObservedActor> {+ let AgentTurnOrigin::ExternalChannel {+ channel,+ sender: Some(sender),+ sender_name,+ message_id,+ ..+ } = origin+ else {+ return None;+ };+ if message_id.starts_with("cron:") {+ return None;+ }+ Some(ObservedActor {+ id: actor_id(channel, sender)?,+ name: sender_name+ .as_deref()+ .map(str::trim)+ .filter(|name| !name.is_empty())+ .map(str::to_string),+ })+}++/// `user:<phone or email>` or `<channel>:<sender>`; `None` when either is+/// blank or the sender is not one token.+fn actor_id(channel: &str, sender: &str) -> Option<String> {+ let channel = channel.trim().to_ascii_lowercase();+ let sender = sender.trim();+ if channel.is_empty() || channel.contains(char::is_whitespace) || sender.is_empty() {+ return None;+ }+ if PHONE_CHANNELS.contains(&channel.as_str()) && looks_like_phone(sender) {+ return Some(format!("user:{}", dial_digits(sender)));+ }+ if sender.contains(char::is_whitespace) {+ return None;+ }+ if is_email(sender) {+ return Some(format!("user:{}", sender.to_ascii_lowercase()));+ }+ Some(format!("{channel}:{sender}"))+}++/// Only phone characters, with seven or more digits.+fn looks_like_phone(text: &str) -> bool {+ text.chars()+ .all(|c| c.is_ascii_digit() || "+-(). ".contains(c))+ && text.chars().filter(char::is_ascii_digit).count() >= 7+}++/// `text`'s digits, with its leading `+` when it has one.+fn dial_digits(text: &str) -> String {+ let digits: String = text.chars().filter(char::is_ascii_digit).collect();+ if text.starts_with('+') {+ format!("+{digits}")+ } else {+ digits+ }+}++/// One `@`, a non-empty local part and a dotted domain: a WhatsApp+/// `<lid>@lid` is not an email address.+fn is_email(text: &str) -> bool {+ text.split_once('@').is_some_and(|(local, domain)| {+ !local.is_empty() && domain.contains('.') && !domain.contains('@')+ })+}++#[cfg(test)]+#[path = "sender_tests.rs"]+mod tests;diff --git a/crates/openhuman-core/src/memory/lifecycle/sender_tests.rs b/crates/openhuman-core/src/memory/lifecycle/sender_tests.rsnew file mode 100644index 0000000000..6b9ac4a6a9--- /dev/null+++ b/crates/openhuman-core/src/memory/lifecycle/sender_tests.rs@@ -0,0 +1,83 @@+use super::*;++fn origin(channel: &str, sender: Option<&str>, name: Option<&str>) -> AgentTurnOrigin {+ AgentTurnOrigin::ExternalChannel {+ channel: channel.into(),+ sender: sender.map(str::to_string),+ sender_name: name.map(str::to_string),+ reply_target: "chat".into(),+ message_id: "m-1".into(),+ history_key: Some("k".into()),+ }+}++fn id(channel: &str, sender: &str) -> Option<String> {+ channel_actor(&origin(channel, Some(sender), None)).map(|actor| actor.id)+}++#[test]+fn a_phone_sender_is_its_dial_digits_with_the_name() {+ assert_eq!(+ channel_actor(&origin("whatsapp", Some("+15551234567"), Some(" Mum "))),+ Some(ObservedActor {+ id: "user:+15551234567".into(),+ name: Some("Mum".into()),+ })+ );+ assert_eq!(+ id("signal", "+1 (555) 123-4567").as_deref(),+ Some("user:+15551234567")+ );+ assert_eq!(id("SMS", "5551234567").as_deref(), Some("user:5551234567"));+}++#[test]+fn an_email_sender_is_lower_cased() {+ assert_eq!(+ id("imessage", "[email protected]").as_deref(),+ Some("user:[email protected]")+ );+ assert_eq!(+ id("email", "[email protected]").as_deref(),+ Some("user:[email protected]")+ );+}++#[test]+fn any_other_sender_is_named_by_its_channel() {+ assert_eq!(+ id("telegram", "123456789").as_deref(),+ Some("telegram:123456789"),+ "a Telegram id is digits, not a phone number"+ );+ assert_eq!(id("telegram", "@priya").as_deref(), Some("telegram:@priya"));+ assert_eq!(+ id("discord", "112233445566778899").as_deref(),+ Some("discord:112233445566778899")+ );+ assert_eq!(+ id("whatsapp", "98765432101234@lid").as_deref(),+ Some("whatsapp:98765432101234@lid"),+ "a WhatsApp LID is not an email address"+ );+}++#[test]+fn nothing_is_attributed_without_a_channel_sender() {+ assert_eq!(channel_actor(&origin("whatsapp", None, Some("Mum"))), None);+ assert_eq!(id("whatsapp", " "), None);+ assert_eq!(id("slack", "two words"), None);+ assert_eq!(id(" ", "+15551234567"), None);+ assert_eq!(channel_actor(&AgentTurnOrigin::Cli), None);+ assert_eq!(channel_actor(&AgentTurnOrigin::DirectChat), None);++ let cron = AgentTurnOrigin::ExternalChannel {+ channel: "telegram".into(),+ sender: Some("alice".into()),+ sender_name: None,+ reply_target: "42".into(),+ message_id: "cron:job-1:run-1".into(),+ history_key: Some("k".into()),+ };+ assert_eq!(channel_actor(&cron), None, "a cron run is the job's prompt");+}diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rsindex cb36915927..9c1f3e54d2 100644--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs@@ -82,6 +82,7 @@ async fn the_preview_reads_without_logging_and_agents_are_listed() {in_prompt_from: 0,at: Utc::now(),resumed_after_compaction: false,+ observed_actor: None,},).await;diff --git a/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rs b/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rsindex 8f2c5056c5..e4b78f6a5d 100644--- a/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rs@@ -116,6 +116,7 @@ async fn intercept_with_external_channel_origin_persists_and_ttl_denies() {let (gate, _dir, env) = expiry_gate().await;let gate = Arc::new(gate);let origin = AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "telegram".into(),sender: Some("tg-user-1".into()),reply_target: "tg-chat-1".into(),diff --git a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rsindex b812703a03..a1f7c22467 100644--- a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs+++ b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs@@ -159,6 +159,7 @@ async fn external_origin_cannot_reuse_an_existing_attachment_marker() {.await.unwrap();let origin = crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "test".into(),sender: None,reply_target: "room".into(),diff --git a/crates/openhuman-core/src/voice/live/session.rs b/crates/openhuman-core/src/voice/live/session.rsindex bc98494f8e..e286b14be4 100644--- a/crates/openhuman-core/src/voice/live/session.rs+++ b/crates/openhuman-core/src/voice/live/session.rs@@ -169,6 +169,7 @@ pub(crate) async fn start(let prepared = providers::prepare(&config, &provider, live).await?;let origin = AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "voice".to_string(),sender: None,reply_target: session_id.to_string(),diff --git a/crates/openhuman-core/src/voice/realtime_harness/agent.rs b/crates/openhuman-core/src/voice/realtime_harness/agent.rsindex ce5d437b79..8f58b18137 100644--- a/crates/openhuman-core/src/voice/realtime_harness/agent.rs+++ b/crates/openhuman-core/src/voice/realtime_harness/agent.rs@@ -148,6 +148,7 @@ async fn run_single_with_timeout(let scoped_run = agent.run_single(prompt);let fut = with_origin(AgentTurnOrigin::ExternalChannel {+ sender_name: None,channel: "voice".to_string(),sender: None,reply_target: correlation_id.to_string(),