Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(agent): use learning hooks for post-turn host overrides

Steven Enamakel03af0675e0b9
diff --git a/crates/openhuman-core/src/agent/hooks.rs b/crates/openhuman-core/src/agent/hooks.rs
index d3c74e1c4e..80aaace2b2 100644
--- a/crates/openhuman-core/src/agent/hooks.rs
+++ b/crates/openhuman-core/src/agent/hooks.rs
@@ -79,7 +79,7 @@ pub fn embedder_post_turn_hooks_in(
) -> Vec<Arc<dyn PostTurnHook>> {
let mut hooks = embedder_post_turn_hooks();
if let Some(local) = ctx.host_overrides() {
- hooks.extend(local.post_turn_hooks());
+ hooks.extend(local.learning_hooks().iter().cloned());
}
hooks
}