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: files changed crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs,c
Steven Enamakel759cde04c52c
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 f7c24e5a1a..d963a02463 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@@ -40,8 +40,8 @@ pub(super) struct PendingMemoryTurn {}/// The provider channel that owns a logged conversation, if this turn came-/// from a registered external channel. Event-context labels such as `cron`,-/// `voice`, and `mcp_server` are not channel owners.+/// from an external channel. Event-context labels such as `cron`, `voice`, and+/// `mcp_server` are not channel owners.fn logged_channel(origin: Option<&crate::agent::turn_origin::AgentTurnOrigin>) -> Option<String> {let Some(crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {channel,@@ -55,9 +55,7 @@ fn logged_channel(origin: Option<&crate::agent::turn_origin::AgentTurnOrigin>) -return None;}let channel = channel.trim().to_ascii_lowercase();- if channel.is_empty()- || tinychannels_bus::controllers::find_channel_definition(&channel).is_none()- {+ if channel.is_empty() {return None;}Some(channel)diff --git a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rsindex aa100522cf..ef21946809 100644--- a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs@@ -33,6 +33,7 @@ async fn bound_turn(tmp: &tempfile::TempDir) -> Arc<MemoryTurn> {Utc::now(),false,None,+ None,).await;post_turn(diff --git a/crates/openhuman-core/src/memory/backfill_tests.rs b/crates/openhuman-core/src/memory/backfill_tests.rsindex d5afe7b5a5..ba67a8c6cd 100644--- a/crates/openhuman-core/src/memory/backfill_tests.rs+++ b/crates/openhuman-core/src/memory/backfill_tests.rs@@ -127,6 +127,7 @@ async fn stores_past_chats_once_and_skips_what_live_logging_took() {Utc::now(),false,None,+ None,).await;diff --git a/crates/openhuman-core/src/memory/lifecycle/hooks.rs b/crates/openhuman-core/src/memory/lifecycle/hooks.rsindex 7bd3f028b4..db79ca5e91 100644--- a/crates/openhuman-core/src/memory/lifecycle/hooks.rs+++ b/crates/openhuman-core/src/memory/lifecycle/hooks.rs@@ -171,6 +171,7 @@ pub(crate) async fn pre_turn_work(at: DateTime<Utc>,resumed_after_compaction: bool,observed_actor: Option<tinymemory_api::ObservedActor>,+ channel: Option<String>,) -> Option<TurnPack> {let logging = config.memory.conversations.enabled;if !logging && !identity.recall {@@ -229,6 +230,7 @@ pub(crate) async fn pre_turn_work(pre.in_prompt_from = in_prompt_from;pre.at = Some(at);pre.observed_actor = observed_actor.clone();+ pre.channel = channel.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 103e863154..877111172e 100644--- a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs@@ -59,6 +59,7 @@ async fn run_pre_turn(at,resumed,observed_actor,+ None,).await}diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch.rsindex c72ab9560d..67ebc3f850 100644--- a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs@@ -208,17 +208,6 @@ pub(crate) fn pre_turn(guard_turn_work(&config.clone(),Box::pin(dispatch.clone().enter(async move {- if config.memory.conversations.enabled {- if let Some(channel) = channel {- let workspace = config.workspace_dir.clone();- let thread = thread_id.clone();- let _ = dispatch- .spawn_blocking(move || {- crate::memory::channels::record(&workspace, &channel, &thread)- })- .await;- }- }hooks::pre_turn_work(&dispatch,&config,@@ -230,6 +219,7 @@ pub(crate) fn pre_turn(at,resumed_after_compaction,observed_actor,+ channel,).await})),diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rsindex 30a4f9fb55..7ed8d1908b 100644--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs@@ -136,6 +136,7 @@ async fn the_preview_reads_without_logging_and_agents_are_listed() {Utc::now(),false,None,+ None,).await;