Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(agent-orders): always resolve price_change_pct when a baseline exists

nirholas968232c99761
diff --git a/workers/agent-orders/market.js b/workers/agent-orders/market.js
index fb9091c99..dfbf57fea 100644
--- a/workers/agent-orders/market.js
+++ b/workers/agent-orders/market.js
@@ -112,7 +112,9 @@ export async function getSignals({ network, mint, need = [], referencePrice = nu
}
// price_change_pct vs the metric value captured when the order was created.
- if ((wants.has('price_change_pct') || true) && referencePrice != null && market) {
+ // Always resolved when a baseline exists: the owner-facing order row shows it
+ // whether or not a condition references the signal.
+ if (referencePrice != null && market) {
const cur = metricValue(market, signals, metric);
if (cur != null && referencePrice > 0) signals.price_change_pct = ((cur - referencePrice) / referencePrice) * 100;
}