Skip to content

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

chore: files changed crates/openhuman-core/src/agent/session_host/builder/factory.rs

Steven Enamakelf9c6af04c9b2
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 702f5d8323..63748a9e50 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -1007,11 +1007,7 @@ impl OpenHumanSessionHost {
.tools(tools)
.synthesized_tools(delegation_tools)
.visible_tool_names(visible)
- .deferred_tools(
- target_def
- .map(|def| def.deferred_tools.clone())
- .unwrap_or_default(),
- )
+ .deferred_tools(target_def.map_or_else(Vec::new, |d| d.deferred_tools.clone()))
.memory(memory)
.auto_recall(Some(auto_recall))
.tool_dispatcher(tool_dispatcher)