Skip to content

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

fix(agent): guard flow catalogue refresh behind runtime config

Steven Enamakel2f3f65baa10d
diff --git a/src/openhuman/agent/harness/session/turn/tools.rs b/src/openhuman/agent/harness/session/turn/tools.rs
index ac2c86c5b7..017bbdf59b 100644
--- a/src/openhuman/agent/harness/session/turn/tools.rs
+++ b/src/openhuman/agent/harness/session/turn/tools.rs
@@ -387,7 +387,9 @@ impl Agent {
profile_skills_root.as_deref(),
);
#[cfg(feature = "flows")]
- latest.extend(crate::openhuman::flows::catalogue::flow_entries(&self.config));
+ if let Some(config) = self.runtime_config.as_deref() {
+ latest.extend(crate::openhuman::flows::catalogue::flow_entries(config));
+ }
log::debug!(
"[agent_loop] refreshed installed-skills metadata (trigger={trigger}, profile_local_skills_active={profile_local_skills_active}, workflow_count={})",
latest.len()