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
refactor(core): update controller registration and invocation logic
Steven Enamakel1690c070e9da
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex d5ba982d25..751c68841d 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -301,7 +301,7 @@ pub fn register_controller_extension(ext: ControllerExtension) -> Result<(), Strfor controller in ext.controllers {merged.push(GroupedController {group: ext.group,- controller,+ controller: ControllerEntry::legacy(controller),});}// Validate the union so an extension cannot shadow a built-in or internal@@ -728,10 +728,10 @@ fn build_registered_controllers() -> Vec<GroupedController> {crate::platform::update::all_update_registered_controllers(),);// Conversation thread and message management- push(+ push_entries(&mut controllers,DomainGroup::Threads,- crate::threads::all_threads_registered_controllers(),+ crate::threads::schemas::registry::all_controller_entries(),);// TokenJuice content-router debug controllers (detect / compress / cache_stats / retrieve).// Classified Inference: TokenJuice is the token-compression content router,@@ -818,12 +818,12 @@ fn build_internal_only_controllers() -> Vec<GroupedController> {}/// Returns registered controllers filtered by the ambient [`crate::core::runtime::DomainSet`].-pub fn all_registered_controllers() -> Vec<RegisteredController> {+pub fn all_registered_controllers() -> Vec<ControllerEntry> {let view = registry_view();registered_controllers(&view)}-fn registered_controllers(view: &RegistryView) -> Vec<RegisteredController> {+fn registered_controllers(view: &RegistryView) -> Vec<ControllerEntry> {let found = view.iter().filter(|g| visible(g))diff --git a/crates/openhuman-core/src/core/all_invoke.rs b/crates/openhuman-core/src/core/all_invoke.rsindex e4ac7f3f12..6de319ac4a 100644--- a/crates/openhuman-core/src/core/all_invoke.rs+++ b/crates/openhuman-core/src/core/all_invoke.rs@@ -69,7 +69,6 @@ async fn invoke_registered(return None;}- let handler = grouped.controller.handler;- let fut: ControllerFuture = handler(ctx, params);+ let fut: ControllerFuture = grouped.controller.invoke(ctx, params);Some(fut.await)}