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(reconstruct): read the camelCase status fields so load-test jobs stop looking stuck

nich4a77644f6555
diff --git a/scripts/reconstruct-load-test.mjs b/scripts/reconstruct-load-test.mjs
index efbb533f8..20ab7ede9 100644
--- a/scripts/reconstruct-load-test.mjs
+++ b/scripts/reconstruct-load-test.mjs
@@ -283,10 +283,13 @@ async function platformDriver({ origin, email, password }) {
const r = await fetch(`${origin}/api/avatars/regenerate-status?jobId=${encodeURIComponent(ref)}`, { headers });
if (!r.ok) return { status: 'unknown' };
const body = await r.json().catch(() => ({}));
+ // The platform status payload is camelCase (resultGlbUrl), the worker's
+ // is snake_case (glb_url). Reading only one of them makes every job
+ // look stuck forever while it is quietly finishing.
return {
status: body.status,
- glbUrl: body.result_glb_url || body.glb_url || null,
- error: body.error || null,
+ glbUrl: body.resultGlbUrl || body.result_glb_url || null,
+ error: body.error || body.error_description || null,
};
},
};