Skip to content

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

refactor(session_host): extract session host builder factory

Steven Enamakeldad64ebeaf52
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
index b9a22ec940..2425c416ef 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -389,9 +389,7 @@ impl OpenHumanSessionHost {
None => SystemPromptBuilder::with_defaults(),
};
let post_turn_hooks: Vec<Arc<dyn crate::agent::hooks::PostTurnHook>> =
- crate::agent::hooks::embedder_post_turn_hooks_in(
- &crate::core::runtime::DispatchCtx::ambient(),
- );
+ crate::agent::hooks::embedder_post_turn_hooks();
// Best-effort prewarm from the shared Composio cache. This avoids
// building the session with a knowingly stale `&[]` integration view