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
chore(voice): add debug logging for voice turn facts
Steven Enamakel7c846d161444
diff --git a/crates/openhuman-core/src/channels/host/voice.rs b/crates/openhuman-core/src/channels/host/voice.rsindex f2385245cb..2144e9e601 100644--- a/crates/openhuman-core/src/channels/host/voice.rs+++ b/crates/openhuman-core/src/channels/host/voice.rs@@ -87,6 +87,9 @@ pub(crate) fn record_inbound_envelope(.parts.iter().any(|part| matches!(part, ContentPart::VoiceNote { .. }));+ tracing::debug!(+ "{LOG_PREFIX} inbound voice fact recorded voice_present={inbound_has_voice}"+ );record_turn(turn_key(tenant, &envelope.channel, &envelope.conversation, turn_id),VoiceTurnFacts {@@ -284,6 +287,11 @@ impl ChannelVoiceHost {let policy = resolve_policy(&self.config.channel_voice, scope, tenant);let requested = turn_key(tenant, &scope.channel, &scope.conversation, &scope.turn_id);let turns = TURNS.lock();+ let exact_entries = turns+ .iter()+ .filter(|(key, _)| key == &requested)+ .map(|(_, facts)| facts.inbound_has_voice)+ .collect::<Vec<_>>();let same_scope_except_tenant = turns.iter().any(|(key, _)| {key.channel == requested.channel&& key.conversation == requested.conversation@@ -305,11 +313,14 @@ impl ChannelVoiceHost {&& key.conversation == requested.conversation});tracing::debug!(- "{LOG_PREFIX} policy key_match tenant={} channel={} conversation={} turn={}",+ "{LOG_PREFIX} policy key_match tenant={} channel={} conversation={} turn={} exact_entries={} exact_voice={:?} authenticated_scope={}",same_scope_except_channel && same_scope_except_conversation && same_scope_except_turn,same_scope_except_tenant && same_scope_except_conversation && same_scope_except_turn,same_scope_except_tenant && same_scope_except_channel && same_scope_except_turn,same_scope_except_tenant && same_scope_except_channel && same_scope_except_conversation,+ exact_entries.len(),+ exact_entries,+ has_authenticated_channel_identity(scope),);tracing::debug!("{LOG_PREFIX} policy channel={} mode={:?} inbound_voice={}",