Skip to content

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

fix(builder): handle missing session host in build

Steven Enamakel520d7de6ba47
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
index 08c45b41e8..a91a15677a 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
@@ -121,8 +121,8 @@ impl SessionHostBuilder {
&mut visible_names,
&agent_definition_name,
);
- // Per-tool exposure: `Hidden` members of a collapsed tool (`memory_*`,
- // `todo_*`) and `Deferred` tools leave the wire; they stay registered
+ // Per-tool exposure: `Hidden` members of a collapsed tool (`todo_*`)
+ // and `Deferred` tools leave the wire; they stay registered
// and dispatchable. A wildcard belt always gets this; a hand-written
// `[tools] named` list is already the answer to "what should this
// agent see", so it opts into discovery by naming `tool_search` — the
@@ -144,7 +144,7 @@ impl SessionHostBuilder {
visible_names.remove(crate::tools::implementations::meta::TOOL_SEARCH_NAME);
let discovery_enabled = belt_is_wildcard || discovery_opted_in;
// A wildcard belt was seeded from the whole registry, so its durable
- // `Hidden` members (collapsed `memory_*` / `todo_*`) leave here too.
+ // `Hidden` members (collapsed `todo_*`) leave here too.
// A named belt never listed them.
let mut deferred_names = if belt_is_wildcard {
crate::tools::implementations::meta::strip_deferred_from_visible(