Skip to content

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

fix: disclose possible x402 payment proof metadata

Steven Enamakel7e1aa274dce0
diff --git a/crates/openhuman-core/src/web3/x402/seams.rs b/crates/openhuman-core/src/web3/x402/seams.rs
index 37d77f5855..7ff8ed6f38 100644
--- a/crates/openhuman-core/src/web3/x402/seams.rs
+++ b/crates/openhuman-core/src/web3/x402/seams.rs
@@ -94,11 +94,10 @@ impl RequestGuard for HostRequestGuard {
"Action blocked: rate limit exceeded".into(),
));
}
- self.security.disclose(
- &target.host,
- request.body.is_some(),
- !request.headers.is_empty(),
- );
+ // A 402 retry adds PAYMENT-SIGNATURE even when the original request
+ // has no headers. Disclose that potential metadata before either send.
+ self.security
+ .disclose(&target.host, request.body.is_some(), true);
let mut approved_request = request.clone();
approved_request.url = target.url;
Ok(AuthorizedRequest {