The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(commands): gate the flows listing like the module it calls
sanil-230dea75feb39b
diff --git a/crates/openhuman-core/src/commands/ops.rs b/crates/openhuman-core/src/commands/ops.rsindex cef03bfeb9..4bd061a114 100644--- a/crates/openhuman-core/src/commands/ops.rs+++ b/crates/openhuman-core/src/commands/ops.rs@@ -111,9 +111,17 @@ pub async fn commands_list() -> Result<RpcOutcome<CommandsListResponse>, String>entries.extend(entries_from_array(&value, "skills", CommandKind::Skill));}- let flows_controllers = crate::flows::all_flows_registered_controllers();- if let Some(value) = invoke(&flows_controllers, "flows", "list", Map::new()).await {- entries.extend(entries_from_array(&value, "flows", CommandKind::Workflow));+ // Gated like the module it calls. `crate::flows` is `#[cfg(feature =+ // "flows")]`, so naming it unconditionally builds only for the feature+ // sets that happen to enable it -- and a consumer with+ // `default-features = false`, which is how `tinyhivemind` depends on this+ // crate, cannot compile it at all.+ #[cfg(feature = "flows")]+ {+ let flows_controllers = crate::flows::all_flows_registered_controllers();+ if let Some(value) = invoke(&flows_controllers, "flows", "list", Map::new()).await {+ entries.extend(entries_from_array(&value, "flows", CommandKind::Workflow));+ }}log::debug!(diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rsindex 8c89022825..619e684062 100644--- a/crates/openhuman-embed/src/turn.rs+++ b/crates/openhuman-embed/src/turn.rs@@ -288,9 +288,17 @@ impl Turn {/// the agent's own prior turns into quoted text, which is not the same/// input.///- /// Pair it with a [`session`](Self::session) id of its own. Seeding is- /// refused on a session that already holds history, and a turn that varies- /// its belt or its prompt wants a session it is not sharing.+ /// # It replaces, silently+ ///+ /// Seeding a session that already holds a conversation **discards that+ /// conversation** -- the history is cleared and these rows put in its+ /// place. Nothing refuses the call, because the case this exists for is a+ /// host re-deriving the whole view every turn, for which replacement is+ /// the point rather than a hazard.+ ///+ /// So pair it with a [`session`](Self::session) id of its own. A turn that+ /// seeds, or that varies its belt or its prompt, wants a session it is not+ /// sharing with turns that expect their history to still be there.////// Only a runtime-owned [`Agent`](crate::Agent) can honour this; a turn on/// a caller-built runtime's orchestrator is refused rather than run