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(rivalries): bound the strip fetch so a stall cannot pin the skeleton

nirholasfe85e4b7f1e8
diff --git a/src/play/rivalries.js b/src/play/rivalries.js
index 09a101e5b..61c281249 100644
--- a/src/play/rivalries.js
+++ b/src/play/rivalries.js
@@ -83,7 +83,12 @@ export function mountRivalries(el, { network = 'mainnet', window: win = '7d', lo
if (stopped) return;
try {
const q = new URLSearchParams({ network, window: win, lookback, limit: String(limit) });
- const res = await fetch(`/api/sniper/rivalries?${q}`, { headers: { accept: 'application/json' } });
+ const res = await fetch(`/api/sniper/rivalries?${q}`, {
+ headers: { accept: 'application/json' },
+ // A strip under a 3D scene must not hold a request open indefinitely: a
+ // stalled fetch would keep the skeleton up forever with no way back.
+ signal: AbortSignal.timeout(8000),
+ });
if (!res.ok) throw new Error(`http ${res.status}`);
const data = await res.json();
if (stopped) return;