Skip to content

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

refactor(agent_runs): simplify core pointer access in cancel debug log

Steven Enamakel0a436c1c5bce
diff --git a/crates/openhuman-core/src/agent_runs/subagent_control.rs b/crates/openhuman-core/src/agent_runs/subagent_control.rs
index 8c3fe37a59..00223c584e 100644
--- a/crates/openhuman-core/src/agent_runs/subagent_control.rs
+++ b/crates/openhuman-core/src/agent_runs/subagent_control.rs
@@ -109,9 +109,7 @@ fn handle_subagent_cancel(ctx: DispatchCtx, params: Map<String, Value>) -> Contr
if std::env::var_os("OPENHUMAN_DEBUG_DRIVER_CANCEL").is_some() {
eprintln!(
"CANCEL_HANDLER task={task_id:?} dispatch_core={:?} current_core={:?} default_core={:?} saas={}",
- ctx.core()
- .as_ref()
- .map(std::sync::Arc::as_ptr),
+ ctx.core().map(std::sync::Arc::as_ptr),
crate::core::runtime::CoreContext::current()
.as_ref()
.map(std::sync::Arc::as_ptr),