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
refactor(runtime): pass thread_id to cleanup function
Steven Enamakel1e32a38b519f
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rsindex 73bf68c06e..2f98ae36f3 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs@@ -577,6 +577,7 @@ pub(crate) async fn run(runtime.shared.begin_delivery_wait(&request_id);let cleanup_staged_parts = staged_parts.clone();let cleanup_config = trusted.host_agent.config.clone();+ let cleanup_thread_id = thread_id.clone();let request = TurnRequest {scope: ScopeKey {agent_id: trusted.host_agent.definition.id.clone(),@@ -608,7 +609,7 @@ pub(crate) async fn run(if !queued && result.is_err() && !cleanup_staged_parts.is_empty() {if let Err(error) = crate::threads::attachments::discard_native_channel_parts(dispatch,- &thread_id,+ &cleanup_thread_id,&cleanup_config,&cleanup_staged_parts,)