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(agent): key post-turn hooks by index to avoid name collisions
Steven Enamakeld61efb86cab9
diff --git a/crates/openhuman-embed/src/agent/build.rs b/crates/openhuman-embed/src/agent/build.rsindex ec9b7e5a1f..2533193d60 100644--- a/crates/openhuman-embed/src/agent/build.rs+++ b/crates/openhuman-embed/src/agent/build.rs@@ -294,8 +294,8 @@ pub(crate) fn instantiate(runtime: &Runtime, spec: AgentSpec) -> Result<AgentInnoverrides.named_tools = Some(std::sync::Arc::new(names.iter().cloned().collect()));}let overrides = std::sync::Arc::new(overrides);- for hook in parts.post_turn_hooks {- overrides.post_turn_hook(hook.name(), Some(hook.clone()));+ for (index, hook) in parts.post_turn_hooks.into_iter().enumerate() {+ overrides.post_turn_hook(&format!("agent.learning_sink.{index:020}"), Some(hook));}for hook in parts.tool_hooks {overrides.tool_hook(hook.name(), Some(hook.clone()));