Skip to content

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

fix(network): qualify DispatchCtx path in x402 host module

Steven Enamakelb8535c0b4bb1
diff --git a/crates/openhuman-core/src/tools/impl/network/host.rs b/crates/openhuman-core/src/tools/impl/network/host.rs
index f4e136543e..4061e57934 100644
--- a/crates/openhuman-core/src/tools/impl/network/host.rs
+++ b/crates/openhuman-core/src/tools/impl/network/host.rs
@@ -291,7 +291,7 @@ mod x402 {
.ok_or_else(|| {
"402 response is missing a valid PAYMENT-REQUIRED header".to_string()
})?;
- let config = DispatchCtx::ambient().load_config()
+ let config = crate::core::runtime::DispatchCtx::ambient().load_config()
.await
.map_err(|error| format!("x402 payment failed: {error}"))?;
declined_when_wallet_off(&config)?;