Skip to content

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

refactor(delegate_graph): use current registry lookup

Steven Enamakela1224291f8d5
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
index 0854fc62bc..515c97a94a 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
@@ -224,9 +224,7 @@ impl DelegateGraphTool {
// catalogue (or none at all) when callers execute the typed tool with
// an explicit parent carrier. Keep the process registry as the legacy
// fallback for contexts that do not carry an agent-local catalogue.
- let registry = match AgentDefinitionRegistry::for_core_context(
- run_context.dispatch_ctx().into_core(),
- ) {
+ let registry = match AgentDefinitionRegistry::current() {
Some(reg) => reg,
None => {
return Ok(ToolResult::error(